From 410bb6c4d36ad7847f95c4586fe1d18aa89f0846 Mon Sep 17 00:00:00 2001 From: David LeGare Date: Wed, 2 Mar 2022 16:21:23 +0000 Subject: Update unicode-bidi to 0.3.7 Test: cd external/rust/crates && atest --host -c Change-Id: I9bb9a4783210d0899bafb537074a3e81e26a72c5 --- .cargo_vcs_info.json | 2 +- .github/workflows/main.yml | 36 ++++++++++++++++++++++++++++++++++++ .travis.yml | 37 ------------------------------------- Android.bp | 4 ++-- Cargo.toml | 11 +++++------ Cargo.toml.orig | 2 +- METADATA | 10 +++++----- src/lib.rs | 2 +- 8 files changed, 51 insertions(+), 53 deletions(-) create mode 100644 .github/workflows/main.yml delete mode 100644 .travis.yml diff --git a/.cargo_vcs_info.json b/.cargo_vcs_info.json index 54bfe61..8b4acfd 100644 --- a/.cargo_vcs_info.json +++ b/.cargo_vcs_info.json @@ -1,5 +1,5 @@ { "git": { - "sha1": "2c89f8f02566cfaeb1266706b259c6c7c3aae8dd" + "sha1": "121c26b55190e14cac4b56fea02bb1e4420c4c00" } } diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..419cc67 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,36 @@ +name: CI + +on: + push: + branches: ['master'] + pull_request: + +jobs: + Test: + strategy: + matrix: + os: [ubuntu-latest] + rust: [1.36.0, stable, beta, nightly] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + override: true + - uses: actions-rs/cargo@v1 + with: + command: build + args: --all-targets + - uses: actions-rs/cargo@v1 + with: + command: test + - uses: actions-rs/cargo@v1 + with: + command: test + args: --features "serde" + - uses: actions-rs/cargo@v1 + with: + command: test + args: --no-default-features diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7949019..0000000 --- a/.travis.yml +++ /dev/null @@ -1,37 +0,0 @@ -language: rust -sudo: false -os: linux -dist: trusty - -rust: - - nightly - - beta - - stable - - 1.31.0 - -matrix: - fast_finish: true - allow_failures: - - rust: nightly - -notifications: - email: - on_success: never - -env: - global: - - RUST_BACKTRACE=full - -script: - - cargo build --verbose - - cargo doc --verbose --no-deps - - - cargo test --verbose - - cargo test --verbose --features 'serde' - - cargo test --verbose --features 'with_serde' - - - test "$TRAVIS_RUST_VERSION" != "nightly" || - cargo bench --verbose --features 'bench_it' - - - test "$TRAVIS_RUST_VERSION" != "nightly" || - cargo run --verbose --features 'flame_it' --example 'flame_udhr' diff --git a/Android.bp b/Android.bp index bd2fd22..baf5387 100644 --- a/Android.bp +++ b/Android.bp @@ -43,7 +43,7 @@ rust_library { host_supported: true, crate_name: "unicode_bidi", cargo_env_compat: true, - cargo_pkg_version: "0.3.6", + cargo_pkg_version: "0.3.7", srcs: ["src/lib.rs"], edition: "2018", features: [ @@ -62,7 +62,7 @@ rust_test { host_supported: true, crate_name: "unicode_bidi", cargo_env_compat: true, - cargo_pkg_version: "0.3.6", + cargo_pkg_version: "0.3.7", srcs: ["src/lib.rs"], test_suites: ["general-tests"], auto_gen_config: true, diff --git a/Cargo.toml b/Cargo.toml index d64220e..91f32ba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 = "unicode-bidi" -version = "0.3.6" +version = "0.3.7" authors = ["The Servo Project Developers"] exclude = ["benches/**", "data/**", "examples/**", "tests/**", "tools/**"] description = "Implementation of the Unicode Bidirectional Algorithm" diff --git a/Cargo.toml.orig b/Cargo.toml.orig index 912ded6..812c27c 100644 --- a/Cargo.toml.orig +++ b/Cargo.toml.orig @@ -1,6 +1,6 @@ [package] name = "unicode-bidi" -version = "0.3.6" +version = "0.3.7" authors = ["The Servo Project Developers"] license = "MIT / Apache-2.0" description = "Implementation of the Unicode Bidirectional Algorithm" diff --git a/METADATA b/METADATA index 4590da0..3a9bbd9 100644 --- a/METADATA +++ b/METADATA @@ -7,13 +7,13 @@ third_party { } url { type: ARCHIVE - value: "https://static.crates.io/crates/unicode-bidi/unicode-bidi-0.3.6.crate" + value: "https://static.crates.io/crates/unicode-bidi/unicode-bidi-0.3.7.crate" } - version: "0.3.6" + version: "0.3.7" license_type: NOTICE last_upgrade_date { - year: 2021 - month: 9 - day: 22 + year: 2022 + month: 3 + day: 1 } } diff --git a/src/lib.rs b/src/lib.rs index 09bbcfb..bb318a0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -66,7 +66,7 @@ #![no_std] // We need to link to std to make doc tests work on older Rust versions -#![cfg(feature = "std")] +#[cfg(feature = "std")] extern crate std; #[macro_use] extern crate alloc; -- cgit v1.2.3