|
| 1 | +# Third-party notices |
| 2 | + |
| 3 | +Usage itself is licensed under the MIT License; see [LICENSE](LICENSE). This file |
| 4 | +records the third-party work that Usage vendors, derives from, or is closely |
| 5 | +modeled on, together with the license each is used under. |
| 6 | + |
| 7 | +## clap |
| 8 | + |
| 9 | +Usage's design owes a great deal to [clap](https://github.com/clap-rs/clap). No |
| 10 | +clap source is vendored here, but clap's design is reproduced closely enough to |
| 11 | +warrant attribution: |
| 12 | + |
| 13 | +- `usage-derive` / `usage-rs` deliberately mirror `clap_derive`'s attribute |
| 14 | + vocabulary and semantics (`long`, `short`, `env`, `default_value`, `flatten`, |
| 15 | + `value_enum`, `rename_all`, and friends) so a clap declaration can be ported |
| 16 | + field by field. See [docs/rust/clap-compatibility.md](docs/rust/clap-compatibility.md). |
| 17 | +- The rendered help, usage line, and diagnostic conventions follow clap's output |
| 18 | + shape so migrated CLIs keep their existing user-facing text. |
| 19 | +- `clap_usage` reads a `clap::Command` through clap's public API to generate a |
| 20 | + spec, and the conformance suite asserts parity against clap's behavior. |
| 21 | + |
| 22 | +clap is distributed under the terms of either the MIT license or the Apache |
| 23 | +License, Version 2.0, at the user's option. Usage takes it under the MIT option, |
| 24 | +reproduced verbatim below from clap's `LICENSE-MIT` (clap 4.6.6, the version in |
| 25 | +this workspace's lockfile): |
| 26 | + |
| 27 | +``` |
| 28 | +Copyright (c) Individual contributors |
| 29 | +
|
| 30 | +Permission is hereby granted, free of charge, to any person obtaining a copy |
| 31 | +of this software and associated documentation files (the "Software"), to deal |
| 32 | +in the Software without restriction, including without limitation the rights |
| 33 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 34 | +copies of the Software, and to permit persons to whom the Software is |
| 35 | +furnished to do so, subject to the following conditions: |
| 36 | +
|
| 37 | +The above copyright notice and this permission notice shall be included in all |
| 38 | +copies or substantial portions of the Software. |
| 39 | +
|
| 40 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 41 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 42 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 43 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 44 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 45 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 46 | +SOFTWARE. |
| 47 | +``` |
| 48 | + |
| 49 | +The Apache-2.0 option is available upstream at |
| 50 | +<https://github.com/clap-rs/clap/blob/master/LICENSE-APACHE>. |
| 51 | + |
| 52 | +## bash-completion |
| 53 | + |
| 54 | +[`lib/bash-completion/bash_completion`](lib/bash-completion/bash_completion) is a |
| 55 | +verbatim copy of the `bash_completion` script from |
| 56 | +[scop/bash-completion](https://github.com/scop/bash-completion) (version 2.15.0). |
| 57 | +`lib/src/complete/bash.rs` embeds it with `include_str!` and emits it when |
| 58 | +`usage generate completion bash --include-bash-completion-lib` is used, so the |
| 59 | +script is redistributed both in the `usage-lib` crate and in any binary built |
| 60 | +from it. |
| 61 | + |
| 62 | +**bash-completion is licensed under the GNU General Public License, version 2 or |
| 63 | +later** — not MIT. The full license text ships alongside the script in |
| 64 | +[lib/bash-completion/COPYING](lib/bash-completion/COPYING), and the upstream |
| 65 | +copyright header is preserved at the top of the script itself: |
| 66 | + |
| 67 | +``` |
| 68 | + |
| 69 | + © 2009-2020, Bash Completion Maintainers |
| 70 | +``` |
| 71 | + |
| 72 | +## clap adopter probes |
| 73 | + |
| 74 | +`benches/shadows/external-*` and `conformance/tests/external_clap_adopters.rs` |
| 75 | +are reductions of three real clap-based CLIs, pinned to the revisions recorded in |
| 76 | +[benches/external/README.md](benches/external/README.md). They are reduced rather |
| 77 | +than vendored, but they do carry each upstream's declaration shapes and help text, |
| 78 | +so each upstream's license is reproduced below. |
| 79 | + |
| 80 | +### fd |
| 81 | + |
| 82 | +[sharkdp/fd](https://github.com/sharkdp/fd), revision |
| 83 | +`ee20f426ddf338ac7ead5c5f00ea49258005caaf`, dual MIT / Apache-2.0. Taken under the |
| 84 | +MIT option: |
| 85 | + |
| 86 | +``` |
| 87 | +MIT License |
| 88 | +
|
| 89 | +Copyright (c) 2017-present The fd developers |
| 90 | +
|
| 91 | +Permission is hereby granted, free of charge, to any person obtaining a copy |
| 92 | +of this software and associated documentation files (the "Software"), to deal |
| 93 | +in the Software without restriction, including without limitation the rights |
| 94 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 95 | +copies of the Software, and to permit persons to whom the Software is |
| 96 | +furnished to do so, subject to the following conditions: |
| 97 | +
|
| 98 | +The above copyright notice and this permission notice shall be included in all |
| 99 | +copies or substantial portions of the Software. |
| 100 | +
|
| 101 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 102 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 103 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 104 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 105 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 106 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 107 | +SOFTWARE. |
| 108 | +``` |
| 109 | + |
| 110 | +### tokei |
| 111 | + |
| 112 | +[XAMPPRocky/tokei](https://github.com/XAMPPRocky/tokei), revision |
| 113 | +`fa44e5194060305576514d59b850353643afbfc8`, dual MIT / Apache-2.0. Taken under the |
| 114 | +MIT option: |
| 115 | + |
| 116 | +``` |
| 117 | +MIT License (MIT) |
| 118 | +
|
| 119 | +Copyright (c) 2016 Erin Power |
| 120 | +
|
| 121 | +Permission is hereby granted, free of charge, to any person obtaining a copy |
| 122 | +of this software and associated documentation files (the "Software"), to deal |
| 123 | +in the Software without restriction, including without limitation the rights |
| 124 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 125 | +copies of the Software, and to permit persons to whom the Software is |
| 126 | +furnished to do so, subject to the following conditions: |
| 127 | +
|
| 128 | +The above copyright notice and this permission notice shall be included in |
| 129 | +all copies or substantial portions of the Software. |
| 130 | +
|
| 131 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 132 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 133 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 134 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 135 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 136 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 137 | +THE SOFTWARE. |
| 138 | +``` |
| 139 | + |
| 140 | +### starship |
| 141 | + |
| 142 | +[starship/starship](https://github.com/starship/starship), revision |
| 143 | +`6d38f35391a8e68952a3dd4b9acd40d3d93596f6`, ISC: |
| 144 | + |
| 145 | +``` |
| 146 | +ISC License |
| 147 | +
|
| 148 | +Copyright (c) 2019-2022, Starship Contributors |
| 149 | +
|
| 150 | +Permission to use, copy, modify, and/or distribute this software for any |
| 151 | +purpose with or without fee is hereby granted, provided that the above |
| 152 | +copyright notice and this permission notice appear in all copies. |
| 153 | +
|
| 154 | +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 155 | +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 156 | +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| 157 | +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 158 | +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 159 | +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 160 | +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 161 | +``` |