diff --git a/Cargo.toml b/Cargo.toml index 05dda80..4f04cbd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,3 +1,6 @@ +[workspace.package] +license = "MIT OR Apache-2.0" + [workspace] members = [ "crates/notcore", diff --git a/LICENSE-APACHE b/LICENSE-APACHE new file mode 100644 index 0000000..0d037dd --- /dev/null +++ b/LICENSE-APACHE @@ -0,0 +1,32 @@ +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + +... (171 more lines, 11323 bytes total) diff --git a/LICENSE-MIT b/LICENSE-MIT new file mode 100644 index 0000000..73c5b82 --- /dev/null +++ b/LICENSE-MIT @@ -0,0 +1,19 @@ +Copyright 2026 Joe O'Brien + +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/README.md b/README.md index edf32e6..5411695 100644 --- a/README.md +++ b/README.md @@ -242,3 +242,16 @@ cargo test -p notfiles # test one crate cargo clippy --workspace # lint everything cargo fmt --check # format check ``` + +--- + +## License + +Licensed under either of + +- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0) +- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) + +at your option. + +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. diff --git a/crates/notcore/Cargo.toml b/crates/notcore/Cargo.toml index ee3fbd4..4f1658a 100644 --- a/crates/notcore/Cargo.toml +++ b/crates/notcore/Cargo.toml @@ -2,6 +2,7 @@ name = "notcore" version = "0.1.0" edition = "2024" +license.workspace = true [dependencies] serde = { workspace = true } diff --git a/crates/notfiles/Cargo.toml b/crates/notfiles/Cargo.toml index 6c54364..417cb98 100644 --- a/crates/notfiles/Cargo.toml +++ b/crates/notfiles/Cargo.toml @@ -2,6 +2,7 @@ name = "notfiles" version = "0.1.0" edition = "2024" +license.workspace = true description = "A modern dotfiles manager — pure Rust alternative to GNU Stow" [[bin]] diff --git a/crates/nothooks/Cargo.toml b/crates/nothooks/Cargo.toml index af18a1f..d00bfe7 100644 --- a/crates/nothooks/Cargo.toml +++ b/crates/nothooks/Cargo.toml @@ -2,6 +2,7 @@ name = "nothooks" version = "0.1.0" edition = "2024" +license.workspace = true [[bin]] name = "nothooks" diff --git a/crates/notsecrets/Cargo.toml b/crates/notsecrets/Cargo.toml index 11fcd0b..4ab9c50 100644 --- a/crates/notsecrets/Cargo.toml +++ b/crates/notsecrets/Cargo.toml @@ -2,6 +2,7 @@ name = "notsecrets" version = "0.1.0" edition = "2024" +license.workspace = true [dependencies] notcore = { workspace = true } diff --git a/crates/notstrap/Cargo.toml b/crates/notstrap/Cargo.toml index 15706fc..428a1db 100644 --- a/crates/notstrap/Cargo.toml +++ b/crates/notstrap/Cargo.toml @@ -2,6 +2,7 @@ name = "notstrap" version = "0.1.0" edition = "2024" +license.workspace = true description = "New-machine bootstrap orchestrator" [[bin]]