Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimal versions testing #2

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: rust
dist: xenial
script:
- 'if [ "$WITH_LOCK" != "true" ]; then cargo update; fi'
- 'cargo test --no-default-features'
- 'cargo test --all-features'

@@ -16,14 +15,10 @@ env: # important!
matrix:
include:
- rust: 1.32.0
- rust: 1.32.0
env: WITH_LOCK=true
- rust: stable
env: WITH_LOCK=true
- rust: nightly
env: MAY_FAIL=true
- rust: 1.32.0
os: osx
env: WITH_LOCK=true
allow_failures:
- env: MAY_FAIL=true
134 changes: 67 additions & 67 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions lock-minimize.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/bash -ve

cargo -Z minimal-versions generate-lockfile

# Issue: https://github.com/rust-random/getrandom/pull/112
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# (merged, awaiting getrandom 0.1.13 release, rand release?)
#
# cfg-if v0.1.0
# ├── getrandom v0.1.7
# │ ├── rand v0.7.0
# │ │ └── tempfile v3.1.0
# │ │ [dev-dependencies]
# │ │ └── olio v1.2.0 (/home/david/src/olio)
# │ │ [dev-dependencies]
# │ │ └── olio v1.2.0 (/home/david/src/olio) (*)
# │ └── rand_core v0.5.0
# │ ├── rand v0.7.0 (*)
# │ ├── rand_chacha v0.2.0
# │ │ └── rand v0.7.0 (*)
# │ └── rand_hc v0.2.0
# │ [dev-dependencies]
# │ └── rand v0.7.0 (*)
# └── tempfile v3.1.0 (*)
cargo update -p cfg-if --precise 0.1.2

cargo update -p winapi:0.2.0 --precise 0.2.8
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -73,10 +73,10 @@ pub static VERSION: &str = env!("CARGO_PKG_VERSION");
/// ```
pub mod fs {
mod pos_read;
pub use self::pos_read::PosRead;
pub use pos_read::PosRead;

mod read;
pub use self::read::{ReadPos, ReadSlice};
pub use read::{ReadPos, ReadSlice};

/// Compatibility type aliases.
pub mod rc {
@@ -91,11 +91,11 @@ pub mod fs {
/// I/O extensions and utilities
pub mod io {
mod gather;
pub use self::gather::GatheringReader;
pub use gather::GatheringReader;
}

/// Random access memory utilities
pub mod mem {
mod handle;
pub use self::handle::{MemAdviseError, MemHandle, MemAdvice};
pub use handle::{MemAdviseError, MemHandle, MemAdvice};
}