diff options
author | Joel Galenson <jgalenson@google.com> | 2021-10-12 15:16:33 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-10-12 15:16:33 +0000 |
commit | a20b1cfc4ca9c19f1995b744b1f1e7821130709e (patch) | |
tree | f3e3490edc37e001128db57296b42d052722b20b | |
parent | 244ba06e7c022c5e5954b1cf617b8d9595cb74bf (diff) | |
parent | 7e7a7d984341f3e4752d6d6cc860a5c4aa679a0e (diff) | |
download | nix-a20b1cfc4ca9c19f1995b744b1f1e7821130709e.tar.gz |
Merge "Upgrade rust/crates/nix to 0.22.1" am: eee0bbf293 am: 7e7a7d9843
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/nix/+/1832968
Change-Id: I3d259f910bd3fb5b74dc4fb1295fb15a574e7d04
-rw-r--r-- | .cargo_vcs_info.json | 2 | ||||
-rw-r--r-- | Android.bp | 9 | ||||
-rw-r--r-- | CHANGELOG.md | 9 | ||||
-rw-r--r-- | Cargo.toml | 15 | ||||
-rw-r--r-- | Cargo.toml.orig | 6 | ||||
-rw-r--r-- | METADATA | 8 | ||||
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | src/sys/termios.rs | 2 |
8 files changed, 28 insertions, 25 deletions
diff --git a/.cargo_vcs_info.json b/.cargo_vcs_info.json index 3433190..fb7ddb9 100644 --- a/.cargo_vcs_info.json +++ b/.cargo_vcs_info.json @@ -1,5 +1,5 @@ { "git": { - "sha1": "5dd14c39b88fb6eb25ad670435d1a79ba294b21e" + "sha1": "b29a85165b0bf494974642cc6ba58a924f143948" } } @@ -25,6 +25,8 @@ rust_library { name: "libnix", host_supported: true, crate_name: "nix", + cargo_env_compat: true, + cargo_pkg_version: "0.22.1", srcs: ["src/lib.rs"], edition: "2018", rustlibs: [ @@ -39,10 +41,3 @@ rust_library { "com.android.virt", ], } - -// dependent_library ["feature_list"] -// autocfg-1.0.1 -// bitflags-1.2.1 "default" -// cfg-if-1.0.0 -// libc-0.2.98 "default,extra_traits,std" -// memoffset-0.6.4 "default" diff --git a/CHANGELOG.md b/CHANGELOG.md index 21cb4b8..5367d7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,12 +3,19 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/). -## [Unreleased] - ReleaseDate +## [0.22.1] - 13 August 2021 ### Added ### Changed ### Fixed + +- Locked bitflags to < 1.3.0 to fix the build with rust < 1.46.0. + ### Removed +- Removed a couple of termios constants on redox that were never actually + supported. + (#[1483](https://github.com/nix-rust/nix/pull/1483)) + ## [0.22.0] - 9 July 2021 ### Added - Added `if_nameindex` (#[1445](https://github.com/nix-rust/nix/pull/1445)) @@ -3,17 +3,16 @@ # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies -# to registry (e.g., crates.io) dependencies +# to registry (e.g., crates.io) dependencies. # -# If you believe there's an error in this file please file an -# issue against the rust-lang/cargo repository. If you're -# editing this file be aware that the upstream Cargo.toml -# will likely look very different (and much more reasonable) +# If you are reading this file be aware that the original Cargo.toml +# will likely look very different (and much more reasonable). +# See Cargo.toml.orig for the original contents. [package] edition = "2018" name = "nix" -version = "0.22.0" +version = "0.22.1" authors = ["The nix-rust Project Developers"] exclude = ["/.gitignore", "/.cirrus.yml", "/ci/*", "/Cross.toml", "/RELEASE_PROCEDURE.md", "/bors.toml"] description = "Rust friendly bindings to *nix APIs" @@ -48,13 +47,13 @@ harness = false name = "test-ptymaster-drop" path = "test/test_ptymaster_drop.rs" [dependencies.bitflags] -version = "1.1" +version = ">= 1.1.0, < 1.3.0" [dependencies.cfg-if] version = "1.0" [dependencies.libc] -version = "0.2.98" +version = "0.2.99" features = ["extra_traits"] [dev-dependencies.assert-impl] version = "0.1" diff --git a/Cargo.toml.orig b/Cargo.toml.orig index c5cdd08..7a527d3 100644 --- a/Cargo.toml.orig +++ b/Cargo.toml.orig @@ -2,7 +2,7 @@ name = "nix" description = "Rust friendly bindings to *nix APIs" edition = "2018" -version = "0.22.0" +version = "0.22.1" authors = ["The nix-rust Project Developers"] repository = "https://github.com/nix-rust/nix" license = "MIT" @@ -32,8 +32,8 @@ targets = [ ] [dependencies] -libc = { version = "0.2.98", features = [ "extra_traits" ] } -bitflags = "1.1" +libc = { version = "0.2.99", features = [ "extra_traits" ] } +bitflags = ">= 1.1.0, < 1.3.0" cfg-if = "1.0" [target.'cfg(not(target_os = "redox"))'.dependencies] @@ -7,13 +7,13 @@ third_party { } url { type: ARCHIVE - value: "https://static.crates.io/crates/nix/nix-0.22.0.crate" + value: "https://static.crates.io/crates/nix/nix-0.22.1.crate" } - version: "0.22.0" + version: "0.22.1" license_type: NOTICE last_upgrade_date { year: 2021 - month: 8 - day: 9 + month: 9 + day: 22 } } @@ -93,7 +93,7 @@ To use `nix`, add this to your `Cargo.toml`: ```toml [dependencies] -nix = "0.22.0" +nix = "0.22.1" ``` ## Contributing diff --git a/src/sys/termios.rs b/src/sys/termios.rs index 9abae9d..36a3601 100644 --- a/src/sys/termios.rs +++ b/src/sys/termios.rs @@ -599,7 +599,9 @@ libc_bitflags! { ICRNL; IXON; IXOFF; + #[cfg(not(target_os = "redox"))] IXANY; + #[cfg(not(target_os = "redox"))] IMAXBEL; #[cfg(any(target_os = "android", target_os = "linux", target_os = "macos"))] IUTF8; |