aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-11-11 21:32:34 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-11-11 21:32:34 +0000
commit2a4d2e376a1d5506c8f90826bda4b837fe6cb729 (patch)
tree236cad670aa0ee2d57c2bf389554957d9e7e0a21
parentd7d80443c6e584421741fd3f7f80751aea69db95 (diff)
parentba84d82c1d80abd16b655a07f1d94e83576c0a33 (diff)
downloadplatform_external_rust_crates_byteorder-android10-mainline-resolv-release.tar.gz
platform_external_rust_crates_byteorder-android10-mainline-resolv-release.tar.bz2
platform_external_rust_crates_byteorder-android10-mainline-resolv-release.zip
Snap for 6001391 from ba84d82c1d80abd16b655a07f1d94e83576c0a33 to qt-aml-resolv-releaseandroid-mainline-10.0.0_r8android10-mainline-resolv-release
Change-Id: I5abe6d1af698f2901ffc4080e1bc39755824ff0c
-rw-r--r--.cargo_vcs_info.json5
-rw-r--r--Android.bp7
-rw-r--r--Cargo.toml52
-rw-r--r--Cargo.toml.orig38
-rwxr-xr-xci/script.sh45
5 files changed, 80 insertions, 67 deletions
diff --git a/.cargo_vcs_info.json b/.cargo_vcs_info.json
new file mode 100644
index 0000000..e7e8b81
--- /dev/null
+++ b/.cargo_vcs_info.json
@@ -0,0 +1,5 @@
+{
+ "git": {
+ "sha1": "058237661a88c2f610f280340310fce19d98d265"
+ }
+}
diff --git a/Android.bp b/Android.bp
index 063c62e..67c1b88 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,3 +1,5 @@
+// This file is generated by cargo2android.py.
+
rust_library_rlib {
name: "libbyteorder",
host_supported: true,
@@ -5,7 +7,10 @@ rust_library_rlib {
srcs: ["src/lib.rs"],
edition: "2015",
features: [
+ "default",
"std",
- "i128",
+ ],
+ flags: [
+ "--cfg byteorder_i128",
],
}
diff --git a/Cargo.toml b/Cargo.toml
index 91f2aa3..fb2acad 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,38 +1,48 @@
+# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
+#
+# 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
+#
+# 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)
+
[package]
name = "byteorder"
-version = "1.3.2" #:version
+version = "1.3.2"
authors = ["Andrew Gallant <jamslam@gmail.com>"]
+build = "build.rs"
+exclude = ["/ci/*"]
description = "Library for reading/writing numbers in big-endian and little-endian."
-documentation = "https://docs.rs/byteorder"
homepage = "https://github.com/BurntSushi/byteorder"
-repository = "https://github.com/BurntSushi/byteorder"
+documentation = "https://docs.rs/byteorder"
readme = "README.md"
-categories = ["encoding", "parsing"]
keywords = ["byte", "endian", "big-endian", "little-endian", "binary"]
+categories = ["encoding", "parsing"]
license = "Unlicense OR MIT"
-exclude = ["/ci/*"]
-build = "build.rs"
+repository = "https://github.com/BurntSushi/byteorder"
+[profile.bench]
+opt-level = 3
[lib]
name = "byteorder"
bench = false
+[dev-dependencies.doc-comment]
+version = "0.3"
+
+[dev-dependencies.quickcheck]
+version = "0.8"
+default-features = false
-[dev-dependencies]
-quickcheck = { version = "0.8", default-features = false }
-rand = "0.6"
-doc-comment = "0.3"
+[dev-dependencies.rand]
+version = "0.6"
[features]
default = ["std"]
-std = []
-
-# This feature is no longer used and is DEPRECATED. This crate now
-# automatically enables i128 support for Rust compilers that support it. The
-# feature will be removed if and when a new major version is released.
i128 = []
-
-[profile.bench]
-opt-level = 3
-
-[badges]
-travis-ci = { repository = "BurntSushi/byteorder" }
+std = []
+[badges.travis-ci]
+repository = "BurntSushi/byteorder"
diff --git a/Cargo.toml.orig b/Cargo.toml.orig
new file mode 100644
index 0000000..91f2aa3
--- /dev/null
+++ b/Cargo.toml.orig
@@ -0,0 +1,38 @@
+[package]
+name = "byteorder"
+version = "1.3.2" #:version
+authors = ["Andrew Gallant <jamslam@gmail.com>"]
+description = "Library for reading/writing numbers in big-endian and little-endian."
+documentation = "https://docs.rs/byteorder"
+homepage = "https://github.com/BurntSushi/byteorder"
+repository = "https://github.com/BurntSushi/byteorder"
+readme = "README.md"
+categories = ["encoding", "parsing"]
+keywords = ["byte", "endian", "big-endian", "little-endian", "binary"]
+license = "Unlicense OR MIT"
+exclude = ["/ci/*"]
+build = "build.rs"
+
+[lib]
+name = "byteorder"
+bench = false
+
+[dev-dependencies]
+quickcheck = { version = "0.8", default-features = false }
+rand = "0.6"
+doc-comment = "0.3"
+
+[features]
+default = ["std"]
+std = []
+
+# This feature is no longer used and is DEPRECATED. This crate now
+# automatically enables i128 support for Rust compilers that support it. The
+# feature will be removed if and when a new major version is released.
+i128 = []
+
+[profile.bench]
+opt-level = 3
+
+[badges]
+travis-ci = { repository = "BurntSushi/byteorder" }
diff --git a/ci/script.sh b/ci/script.sh
deleted file mode 100755
index 596e2d5..0000000
--- a/ci/script.sh
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/sh
-
-set -ex
-
-# Setup some variables for executing cargo commands.
-# Things are a little different if we're testing with cross.
-if [ ! -z "$CROSS_TARGET" ]; then
- rustup target add "$CROSS_TARGET"
- cargo install cross --force
- export CARGO_CMD="cross"
- export TARGET_PARAM="--target $CROSS_TARGET"
-else
- export CARGO_CMD="cargo"
- export TARGET_PARAM=""
-fi
-
-# Test the build and docs.
-"$CARGO_CMD" build --verbose $TARGET_PARAM
-"$CARGO_CMD" doc --verbose $TARGET_PARAM
-
-# If we're testing on an older version of Rust, then only check that we
-# can build the crate. This is because the dev dependencies might be updated
-# more frequently, and therefore might require a newer version of Rust.
-#
-# This isn't ideal. It's a compromise.
-if [ "$TRAVIS_RUST_VERSION" = "1.12.0" ]; then
- exit
-fi
-
-"$CARGO_CMD" test --verbose $TARGET_PARAM
-"$CARGO_CMD" test --verbose --no-default-features --lib $TARGET_PARAM
-if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then
- "$CARGO_CMD" test \
- --verbose --features i128 $TARGET_PARAM
- "$CARGO_CMD" test \
- --verbose --no-default-features --features i128 --lib $TARGET_PARAM
- "$CARGO_CMD" bench \
- --verbose --no-run $TARGET_PARAM
- "$CARGO_CMD" bench \
- --verbose --no-run --no-default-features $TARGET_PARAM
- "$CARGO_CMD" bench \
- --verbose --no-run --features i128 $TARGET_PARAM
- "$CARGO_CMD" bench \
- --verbose --no-run --no-default-features --features i128 $TARGET_PARAM
-fi