GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs: add third-party license notices (#1174) · jdx/usage@3274dd3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • NOTICE.md
  • README.md
  • argv
    • NOTICE.md
  • benches/external
    • README.md
  • clap_usage
    • Cargo.toml
    • NOTICE.md
  • cli
    • Cargo.toml
    • NOTICE.md
  • config-build
    • NOTICE.md
  • config
    • NOTICE.md
  • derive
    • NOTICE.md
  • docs/rust
    • clap-compatibility.md
  • lib
    • Cargo.toml
    • NOTICE.md
    • src/complete
      • bash.rs
  • usage-rs
    • NOTICE.md
  • validation
    • NOTICE.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎NOTICE.md‎

Copy file name to clipboard
+161Lines changed: 161 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
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+
Copyright © 2006-2008, Ian Macdonald <[email protected]>
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+
```
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,17 @@ See more at [usage.jdx.dev](https://usage.jdx.dev/).
1818
usage is sponsored by [entire.io](https://entire.io) and [37signals](https://37signals.com).
1919

2020
[View all sponsors](https://jdx.dev/sponsors.html).
21+
22+
## Acknowledgements
23+
24+
Usage's design owes a great deal to [clap](https://github.com/clap-rs/clap) — the
25+
derive attribute vocabulary, the help output shape, and the diagnostic conventions
26+
all follow it deliberately so clap CLIs can be ported field by field. clap's
27+
license is reproduced in [NOTICE.md](NOTICE.md).
28+
29+
## License
30+
31+
[MIT](LICENSE). Third-party notices — including the GPL-2.0-or-later
32+
[bash-completion](https://github.com/scop/bash-completion) script that
33+
`usage generate completion bash --include-bash-completion-lib` emits — are in
34+
[NOTICE.md](NOTICE.md).
Collapse file

‎argv/NOTICE.md‎

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../NOTICE.md
Collapse file

‎benches/external/README.md‎

Copy file name to clipboardExpand all lines: benches/external/README.md
+3Lines changed: 3 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ distinctive declaration shapes, while this audit records everything the reductio
1010
| [XAMPPRocky/tokei](https://github.com/XAMPPRocky/tokei) | `fa44e5194060305576514d59b850353643afbfc8` | builder-only command and `ArgMatches`, append flags, choices, variadic positional | the complete 18-flag command is captured losslessly and compiles as a typed `usage-rs` shadow; the reduced probe exercises its interpreted bridge path | the builder/`ArgMatches` API is an intentional typed-parser non-goal; a real migration must either keep this cold bridge or rewrite the declaration as a typed struct; the custom clap colour palette is not portable |
1111
| [starship/starship](https://github.com/starship/starship) | `6d38f35391a8e68952a3dd4b9acd40d3d93596f6` | subcommands, value-enum aliases, positional `requires`, generated completions | all 15 commands and 55 flags are captured and compile as a typed `usage-rs` shadow; the reduced probe agrees on alias binding and relationship failure | five flattened `pipestatus` occurrences report the same bridge arity loss because clap exposes `Append` and `num_args=1` but not the intended delimiter-expanded collection shape; computed version text must become explicit portable literals; Elvish remains outside the 6.0 shell set; primitive-returning parser functions need `FromStr` wrappers or portable validation |
1212

13+
Each upstream's license is reproduced in the repository's [NOTICE.md](../../NOTICE.md);
14+
update that file when a pinned revision changes to one under different terms.
15+
1316
The executable probes live in `conformance/tests/external_clap_adopters.rs`. Each pinned upstream's
1417
complete captured command, structured bridge-loss report, and generated typed shadow live beside
1518
this audit and under `benches/shadows/external-*`. Refresh this table and the checked-in captures
Collapse file

‎clap_usage/Cargo.toml‎

Copy file name to clipboardExpand all lines: clap_usage/Cargo.toml
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ include = [
77
"/Cargo.toml",
88
"/Cargo.lock",
99
"/README.md",
10+
"/NOTICE.md",
1011
"/src/**/*.rs",
1112
]
1213
description = "Library for working with usage specs"
Collapse file

‎clap_usage/NOTICE.md‎

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../NOTICE.md
Collapse file

‎cli/Cargo.toml‎

Copy file name to clipboardExpand all lines: cli/Cargo.toml
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ include = [
1313
"/Cargo.toml",
1414
"/Cargo.lock",
1515
"/README.md",
16+
"/NOTICE.md",
1617
"/src/**/*.rs",
1718
"/assets/**/*",
1819
]
Collapse file

‎cli/NOTICE.md‎

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../NOTICE.md
Collapse file

‎config-build/NOTICE.md‎

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../NOTICE.md
Collapse file

‎config/NOTICE.md‎

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../NOTICE.md

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.