From 14484ce0b3bcce5d581678d2fafecb65430d0e4e Mon Sep 17 00:00:00 2001 From: Jakub Kotur Date: Tue, 22 Dec 2020 09:58:47 +0100 Subject: Add metadata files for atty. Tests are disabled as they're failing on treehugger for host. Bug: 155309706 Change-Id: Ide3ec2ea2134e95affd181d7170e0808f5ec0377 --- Android.bp | 16 ++++++++++++++++ LICENSE | 20 ++++++++++++++++++++ METADATA | 19 +++++++++++++++++++ MODULE_LICENSE_MIT | 0 OWNERS | 1 + 5 files changed, 56 insertions(+) create mode 100644 Android.bp create mode 100644 LICENSE create mode 100644 METADATA create mode 100644 MODULE_LICENSE_MIT create mode 100644 OWNERS diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..9a2052c --- /dev/null +++ b/Android.bp @@ -0,0 +1,16 @@ +// This file is generated by cargo2android.py --run --device --dependencies. +// Do not modify this file as changes will be overridden on upgrade. + +rust_library { + name: "libatty", + host_supported: true, + crate_name: "atty", + srcs: ["src/lib.rs"], + edition: "2015", + rustlibs: [ + "liblibc", + ], +} + +// dependent_library ["feature_list"] +// libc-0.2.88 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..b9da76b --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +Copyright (c) 2015-2019 Doug Tangren + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/METADATA b/METADATA new file mode 100644 index 0000000..f258576 --- /dev/null +++ b/METADATA @@ -0,0 +1,19 @@ +name: "atty" +description: "A simple interface for querying atty" +third_party { + url { + type: HOMEPAGE + value: "https://crates.io/crates/atty" + } + url { + type: ARCHIVE + value: "https://static.crates.io/crates/atty/atty-0.2.14.crate" + } + version: "0.2.14" + license_type: NOTICE + last_upgrade_date { + year: 2020 + month: 12 + day: 21 + } +} diff --git a/MODULE_LICENSE_MIT b/MODULE_LICENSE_MIT new file mode 100644 index 0000000..e69de29 diff --git a/OWNERS b/OWNERS new file mode 100644 index 0000000..46fc303 --- /dev/null +++ b/OWNERS @@ -0,0 +1 @@ +include platform/prebuilts/rust:/OWNERS -- cgit v1.2.3