Add patch for LICENSE and make Cargo.toml match the crate archive.
Bug: http://b/339424309
Test: treehugger
Change-Id: I4bdd8fb0d3c43d97cd87a183e73390791a6f8cb4
diff --git a/Cargo.toml b/Cargo.toml
index 480748d..9fade1a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,15 +1,29 @@
+# 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]
+edition = "2018"
name = "kernlog"
version = "0.3.1"
-description = "Kernel logger implementation (for low level logging to `/dev/kmsg`)."
authors = ["Konstantin Stepanov <[email protected]>"]
-readme = "README.md"
-repository = "https://github.com/kstep/kernlog.rs.git"
+description = "Kernel logger implementation (for low level logging to `/dev/kmsg`)."
documentation = "http://kstep.me/kernlog.rs/kernlog/index.html"
-license = "MIT"
+readme = "README.md"
keywords = ["kmsg", "log", "logger", "kernel", "dmesg"]
-edition = "2018"
+license = "MIT"
+repository = "https://github.com/kstep/kernlog.rs.git"
+[dependencies.libc]
+version = "0.2"
-[dependencies]
-log = { version = "0.4", features = ["std"] }
-libc = "0.2"
+[dependencies.log]
+version = "0.4"
+features = ["std"]
diff --git a/patches/license.patch b/patches/license.patch
new file mode 100644
index 0000000..119e1e1
--- /dev/null
+++ b/patches/license.patch
@@ -0,0 +1,27 @@
+diff --git b/LICENSE a/LICENSE
+new file mode 100644
+index 0000000..8ed95fe
+--- /dev/null
++++ a/LICENSE
+@@ -0,0 +1,21 @@
++MIT License
++
++Copyright (c) 2020 Konstantin Stepanov
++
++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.