From 8d06708e6c26a5ac41f136129d070b0c3c459f5e Mon Sep 17 00:00:00 2001 From: nils <48135649+Nilstrieb@users.noreply.github.com> Date: Tue, 11 Apr 2023 12:32:44 +0200 Subject: [PATCH] license --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3f10870..5431238 100644 --- a/README.md +++ b/README.md @@ -54,19 +54,20 @@ First, it applies the pass to everything in the file. If that stops the reproduc in isolation. It then repeats the pass until no more changes are made by it. The currently implemented passes are the following: + - `pub` is replaced by `pub(crate)`. This does not have a real minimization effect on its own. - Bodies are replaced by `loop {}`. This greatly cuts down on the amount of things and makes many functions unused - Unused imports are removed - Unused functions are removed (this relies on the first step, as `pub` items are not marked as `dead_code` by rustc) Possible improvements: + - Delete more kinds of unused items - Inline small modules - Deal with dependencies (there is experimental code in the repo that inlines them) - Somehow deal with traits - Integrate more fine-grained minimization tools such as `DustMite` or [`perses`](https://github.com/uw-pluverse/perses) - # Cookbook ## Normal project with ICE on `cargo build` @@ -88,6 +89,7 @@ Possible improvements: ## Use a full script `script.sh` + ```sh #!/usr/bin/env bash @@ -108,3 +110,18 @@ fi ``` `cargo minimize --script-path ./script.sh` + +## License + +Licensed under either of + +- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or https://www.apache.org/licenses/LICENSE-2.0) +- MIT license ([LICENSE-MIT](LICENSE-MIT) or https://opensource.org/licenses/MIT) + +at your option. + +### Contribution + +Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the +work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any +additional terms or conditions.