diff options
author | Jakub Kotur <qtr@google.com> | 2021-03-16 18:40:05 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-03-16 18:40:05 +0000 |
commit | 43fea11f5eeb4f5e4fab8e3dc547961bb094c7c0 (patch) | |
tree | b5bd70d0cb0754a7098f39f9297defd9d5c4a551 | |
parent | 4c04961b3d3a17bb0a8468d2de46f52e65822e24 (diff) | |
parent | 35e48d359eac9ce500affe573b45164adc3b9809 (diff) | |
download | regex-automata-43fea11f5eeb4f5e4fab8e3dc547961bb094c7c0.tar.gz |
Add metadata files for regex-automata. am: 35e48d359e
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/regex-automata/+/1621087
Change-Id: I47f21a8f336e5996b5efec07d076477f01123d41
-rw-r--r-- | Android.bp | 28 | ||||
-rw-r--r-- | COPYING | 3 | ||||
l--------- | LICENSE | 1 | ||||
-rw-r--r-- | LICENSE-MIT | 21 | ||||
-rw-r--r-- | METADATA | 19 | ||||
-rw-r--r-- | MODULE_LICENSE_MIT | 0 | ||||
-rw-r--r-- | OWNERS | 1 | ||||
-rw-r--r-- | TODO | 10 | ||||
-rw-r--r-- | UNLICENSE | 24 |
9 files changed, 107 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..907b6b0 --- /dev/null +++ b/Android.bp @@ -0,0 +1,28 @@ +// 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: "libregex_automata", + // has rustc warnings + host_supported: true, + crate_name: "regex_automata", + srcs: ["src/lib.rs"], + edition: "2015", + features: [ + "default", + "regex-syntax", + "std", + ], + flags: [ + "-C debug-assertions=on", + "-C opt-level=3", + ], + rustlibs: [ + "libbyteorder", + "libregex_syntax", + ], +} + +// dependent_library ["feature_list"] +// byteorder-1.4.2 +// regex-syntax-0.6.22 "default,unicode,unicode-age,unicode-bool,unicode-case,unicode-gencat,unicode-perl,unicode-script,unicode-segment" @@ -0,0 +1,3 @@ +This project is dual-licensed under the Unlicense and MIT licenses. + +You may use this code under the terms of either license. @@ -0,0 +1 @@ +LICENSE-MIT
\ No newline at end of file diff --git a/LICENSE-MIT b/LICENSE-MIT new file mode 100644 index 0000000..3b0a5dc --- /dev/null +++ b/LICENSE-MIT @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2015 Andrew Gallant + +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..421e63a --- /dev/null +++ b/METADATA @@ -0,0 +1,19 @@ +name: "regex-automata" +description: "Automata construction and matching using regular expressions." +third_party { + url { + type: HOMEPAGE + value: "https://crates.io/crates/regex-automata" + } + url { + type: ARCHIVE + value: "https://static.crates.io/crates/regex-automata/regex-automata-0.1.9.crate" + } + version: "0.1.9" + 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 --- /dev/null +++ b/MODULE_LICENSE_MIT @@ -0,0 +1 @@ +include platform/prebuilts/rust:/OWNERS @@ -0,0 +1,10 @@ +* Remove the `empty` constructors for DFAs and replace them with + `never_match` and `always_match` constructors. +* Consider refactoring the NFA representation such that it can be instantly + loaded from a `&[u8]`, just like a sparse DFA. Main downside is that this + could negatively impact using the NFA with deserialization costs. Before + doing this, we should write PikeVM and backtracking implementations so that + they can be benchmarked. +* Add captures and anchors to NFA. +* Once we're happy, re-organize the public API such that NFAs are exported + and usable on their own. diff --git a/UNLICENSE b/UNLICENSE new file mode 100644 index 0000000..68a49da --- /dev/null +++ b/UNLICENSE @@ -0,0 +1,24 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +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 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. + +For more information, please refer to <http://unlicense.org/> |