diff options
author | Omer Ben-Amram <omerbenamram@gmail.com> | 2019-05-23 19:34:45 +0300 |
---|---|---|
committer | Omer Ben-Amram <omerbenamram@gmail.com> | 2019-05-23 19:34:45 +0300 |
commit | bfdc8a19c6f9c1572b296d00edbc724c2df672ed (patch) | |
tree | 175220759146475d2c43cab47f9124e55158223f | |
parent | 3b60f0d6217b2be4ede56f2c1c681a655a1e3ff0 (diff) |
added release infra
-rw-r--r-- | CHANGELOG.md | 9 | ||||
-rw-r--r-- | LICENSE-APACHE (renamed from LICENSE) | 4 | ||||
-rw-r--r-- | LICENSE-MIT | 9 | ||||
-rw-r--r-- | release.py | 17 | ||||
-rw-r--r-- | src/lib.rs | 4 |
5 files changed, 41 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..334f8cb --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,9 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [0.2.0] - 2019-05-23 + +Initial release which I consider a usable beta.
\ No newline at end of file @@ -178,7 +178,7 @@ APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" + boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright {yyyy} {name of copyright owner} + Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/LICENSE-MIT b/LICENSE-MIT new file mode 100644 index 0000000..f1bad00 --- /dev/null +++ b/LICENSE-MIT @@ -0,0 +1,9 @@ +The MIT License (MIT) + +Copyright (c) 2019 Omer Ben-Amram + +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.
\ No newline at end of file diff --git a/release.py b/release.py new file mode 100644 index 0000000..693f064 --- /dev/null +++ b/release.py @@ -0,0 +1,17 @@ +import subprocess +import shlex +import sys + + +def run(cmd: str): + subprocess.run(shlex.split(cmd), check=True) + + +def main(): + level = sys.argv[1] + run("cargo clippy --release") + run(f"cargo release {level}") + + +if __name__ == "__main__": + main() @@ -1,3 +1,7 @@ +#![deny(unused_must_use)] +// Don't allow dbg! prints in release. +#![cfg_attr(not(debug_assertions), deny(clippy::dbg_macro))] + #[macro_use] extern crate num_derive; |