aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Stokes <alanstokes@google.com>2023-10-31 17:05:00 +0000
committerAlan Stokes <alanstokes@google.com>2023-10-31 17:05:00 +0000
commit14705ab0aaad89ea1953c16af5b90dbe3e32f446 (patch)
tree0e9618438f8ddfee228f447a46234d55c1596944
parent948fe0b03bff28483751f62b675e61174eab96dc (diff)
downloadcoset-14705ab0aaad89ea1953c16af5b90dbe3e32f446.tar.gz
Enable the std feature of coset
By default coset doesn't depend on std. But we have separate build targets for std and nostd clients, and there is no reason not to enable coset's std feature for the former. (The benefit is that CosetError then implements Error, which avoids some small but tedious boilerplate in client code.) Test: atest coset_test_src_lib Change-Id: I743bd2f3e37c82d72e333c83534f31f53b9ce3ed
-rw-r--r--Android.bp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Android.bp b/Android.bp
index f2681a6..b717dcc 100644
--- a/Android.bp
+++ b/Android.bp
@@ -31,7 +31,7 @@ rust_test {
unit_test: true,
},
edition: "2018",
- features: ["default"],
+ features: ["std"],
rustlibs: [
"libciborium",
"libciborium_io",
@@ -47,7 +47,7 @@ rust_library {
cargo_pkg_version: "0.3.5",
srcs: ["src/lib.rs"],
edition: "2018",
- features: ["default"],
+ features: ["std"],
rustlibs: [
"libciborium",
"libciborium_io",