File tree Expand file tree Collapse file tree 7 files changed +4160
-1690
lines changed Expand file tree Collapse file tree 7 files changed +4160
-1690
lines changed Original file line number Diff line number Diff line change
1
+ name : Check license file
2
+ on :
3
+ push :
4
+ branches : [ "main" ]
5
+ pull_request :
6
+
7
+ jobs :
8
+ check-license-file :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : Checkout
12
+ uses : actions/checkout@v4
13
+ - name : Check
14
+ run : make update-license-file
15
+ - name : Check diff
16
+ run : |
17
+ git add .
18
+ git diff --cached --exit-code
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # Checks same as CI
1
2
.PHONY : ci
2
- ci : # Checks same as CI
3
- @make test-ci; \
4
- make check; \
5
- make fmt-check; \
6
- make spell-check
3
+ ci : test-ci check fmt-check detect-unused-dependencies update-license-file spell-check
7
4
8
5
.PHONY : run
9
6
run :
@@ -36,6 +33,12 @@ tool-detect-unused-dependencies:
36
33
cargo install cargo-machete; \
37
34
fi
38
35
36
+ .PHONY : tool-update-license-file
37
+ tool-update-license-file :
38
+ @if ! which cargo-about > /dev/null; then \
39
+ cargo install --locked cargo-about; \
40
+ fi
41
+
39
42
.PHONY : test-ci # for CI
40
43
test-ci :
41
44
RUST_BACKTRACE=full FZF_MAKE_IS_TESTING=true cargo test
@@ -78,6 +81,10 @@ spell-check: tool-spell-check
78
81
detect-unused-dependencies : tool-detect-unused-dependencies
79
82
cargo machete
80
83
84
+ .PHONY : update-license-file
85
+ update-license-file : tool-update-license-file
86
+ cargo about generate about.hbs > license.html
87
+
81
88
DEBUG_EXECUTABLE = ./target/debug/fzf-make
82
89
TEST_DIR = ./test_data
83
90
.PHONY : run-in-test-data
Original file line number Diff line number Diff line change 2
2
ratatui = " ratatui"
3
3
4
4
[files ]
5
- extend-exclude = [" doc/README-*.md " ]
5
+ extend-exclude = [" license.html " ]
Original file line number Diff line number Diff line change
1
+ <html >
2
+
3
+ <head >
4
+ <style >
5
+ @media (prefers-color-scheme: dark) {
6
+ body {
7
+ background : #333 ;
8
+ color : white ;
9
+ }
10
+ a {
11
+ color : skyblue ;
12
+ }
13
+ }
14
+ .container {
15
+ font-family : sans-serif ;
16
+ max-width : 800px ;
17
+ margin : 0 auto ;
18
+ }
19
+ .intro {
20
+ text-align : center ;
21
+ }
22
+ .licenses-list {
23
+ list-style-type : none ;
24
+ margin : 0 ;
25
+ padding : 0 ;
26
+ }
27
+ .license-used-by {
28
+ margin-top : -10px ;
29
+ }
30
+ .license-text {
31
+ max-height : 200px ;
32
+ overflow-y : scroll ;
33
+ white-space : pre-wrap ;
34
+ }
35
+ </style >
36
+ </head >
37
+
38
+ <body >
39
+ <main class =" container" >
40
+ <div class =" intro" >
41
+ <h1 >Third Party Licenses</h1 >
42
+ <p >This page lists the licenses of the projects used in fzf-make.</p >
43
+ </div >
44
+
45
+ <h2 >Overview of licenses:</h2 >
46
+ <ul class =" licenses-overview" >
47
+ {{ #each overview }}
48
+ <li ><a href =" #{{ id }} " >{{ name }} </a > ({{ count }} )</li >
49
+ {{ /each }}
50
+ </ul >
51
+
52
+ <h2 >All license text:</h2 >
53
+ <ul class =" licenses-list" >
54
+ {{ #each licenses }}
55
+ <li class =" license" >
56
+ <h3 id =" {{ id }} " >{{ name }} </h3 >
57
+ <h4 >Used by:</h4 >
58
+ <ul class =" license-used-by" >
59
+ {{ #each used_by }}
60
+ <li ><a href =" {{ #if crate.repository }} {{ crate.repository }} {{ else }} https://crates.io/crates/{{ crate.name }} {{ /if }} " >{{ crate.name }} {{ crate.version }} </a ></li >
61
+ {{ /each }}
62
+ </ul >
63
+ <pre class =" license-text" >{{ text }} </pre >
64
+ </li >
65
+ {{ /each }}
66
+ </ul >
67
+ </main >
68
+ </body >
69
+
70
+ </html >
Original file line number Diff line number Diff line change
1
+ accepted = [
2
+ " MIT" ,
3
+ " ISC" ,
4
+ " Apache-2.0" ,
5
+ " MPL-2.0" ,
6
+ " BSD-2-Clause" ,
7
+ " BSD-3-Clause" ,
8
+ " Unicode-DFS-2016" ,
9
+ " OpenSSL" ,
10
+ ]
11
+ workarounds = [" ring" ]
You can’t perform that action at this time.
0 commit comments