mirror of
https://github.com/bspeice/aeron-rs
synced 2024-12-21 05:28:10 -05:00
Try #23:
This commit is contained in:
commit
83a6cd45b6
6
.gitmodules
vendored
6
.gitmodules
vendored
@ -1,3 +1,3 @@
|
||||
[submodule "aeron_driver-sys/aeron"]
|
||||
path = aeron_driver-sys/aeron
|
||||
url = https://github.com/real-logic/aeron
|
||||
[submodule "aeron-driver-sys/aeron"]
|
||||
path = aeron-driver-sys/aeron
|
||||
url = https://github.com/real-logic/aeron.git
|
||||
|
17
.travis.yml
17
.travis.yml
@ -10,24 +10,27 @@ cache:
|
||||
- cargo
|
||||
|
||||
before_script:
|
||||
- rustup set profile minimal
|
||||
- rustup update
|
||||
- rustup show
|
||||
# CMake doesn't like the `sh.exe` provided by Git being in PATH
|
||||
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then rm "C:/Program Files/Git/usr/bin/sh.exe"; fi
|
||||
# MinGW doesn't implement the `poll` functions we need, so default to MSVC
|
||||
# TODO: Attempt compilation with MSYS on Travis
|
||||
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then rustup default stable-x86_64-pc-windows-msvc; fi
|
||||
- rustup component add clippy
|
||||
- rustup component add rustfmt
|
||||
|
||||
script:
|
||||
- cargo clippy --all
|
||||
- cargo fmt --all -- --check
|
||||
|
||||
- cargo test --no-run
|
||||
- cargo test
|
||||
- cargo test --release --no-run
|
||||
- cargo test --release
|
||||
|
||||
- cd aeron_driver-sys/
|
||||
- cd aeron-driver-sys/
|
||||
- cargo test --features "static"
|
||||
|
||||
- cd ..
|
||||
- cargo clippy --all
|
||||
- cargo fmt --all -- --check
|
||||
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
|
@ -1,5 +1,5 @@
|
||||
[workspace]
|
||||
members = [
|
||||
"aeron_driver-sys",
|
||||
"aeron-driver-sys",
|
||||
"aeron-rs"
|
||||
]
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "aeron_driver-sys"
|
||||
version = "0.1.0+1.22.0"
|
||||
name = "aeron-driver-sys"
|
||||
version = "1.0.0+1.25.0"
|
||||
authors = ["Bradlee Speice <bradlee@speice.io>"]
|
||||
edition = "2018"
|
||||
links = "aeron_driver"
|
1
aeron-driver-sys/aeron
Submodule
1
aeron-driver-sys/aeron
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 977bda6f9e9ef3c5b502c8a8c741262147d7f464
|
@ -99,6 +99,9 @@ pub fn main() {
|
||||
.whitelist_type("aeron_.*")
|
||||
.whitelist_var("AERON_.*")
|
||||
.constified_enum_module("aeron_.*_enum")
|
||||
// Some padding structures use arrays > 120 elements,
|
||||
// so we can't derive Debug implementations
|
||||
.derive_debug(false)
|
||||
.generate()
|
||||
.expect("Unable to generate aeron_driver bindings");
|
||||
|
@ -13,7 +13,7 @@ mod tests {
|
||||
let minor = unsafe { crate::aeron_version_minor() };
|
||||
let patch = unsafe { crate::aeron_version_patch() };
|
||||
assert_eq!(major, 1);
|
||||
assert_eq!(minor, 23);
|
||||
assert_eq!(patch, 1);
|
||||
assert_eq!(minor, 25);
|
||||
assert_eq!(patch, 0);
|
||||
}
|
||||
}
|
@ -12,7 +12,7 @@ travis-ci = { repository = "bspeice/aeron-rs", branch = "master" }
|
||||
maintenance = { status = "actively-developed" }
|
||||
|
||||
[dependencies]
|
||||
aeron_driver-sys = { path = "../aeron_driver-sys" }
|
||||
aeron-driver-sys = { path = "../aeron-driver-sys" }
|
||||
memmap = "0.7"
|
||||
|
||||
[dev-dependencies]
|
||||
|
@ -190,12 +190,7 @@ mod tests {
|
||||
// cause an issue because the new media driver must wait for a heartbeat timeout.
|
||||
let driver_res = DriverContext::default().set_aeron_dir(&dir).build();
|
||||
|
||||
// TODO: Why is the error message behavior different on Windows?
|
||||
let expected_message = if cfg!(target_os = "windows") {
|
||||
String::new()
|
||||
} else {
|
||||
format!("could not recreate aeron dir {}: ", dir.display())
|
||||
};
|
||||
let expected_message = format!("could not recreate aeron dir {}: ", dir.display());
|
||||
|
||||
assert!(driver_res.is_err());
|
||||
assert_eq!(
|
||||
|
@ -1 +0,0 @@
|
||||
Subproject commit 02c5015f2c72c232b9cd840ca4726dca7bfe0d0e
|
Loading…
Reference in New Issue
Block a user