러스트 명령어로 의존된 모듈에 라이센스를 모두 출력해요.
1. cargo tree 포멧 인자 사용하기.
-f 인자에 출력할 형식을 미리 정할 수있고, {l} 라이센스 출력문을 넣어주면 돼요.
"[{p}]({r}) - {l}" 양식을 "{p}|({r})|{l}" 처럼 사용하면 좋겠쩌.
cargo tree --depth 1 --prefix none -f "[{p}]({r}) - {l}"
[rand v0.8.5](https://github.com/rust-random/rand) - MIT OR Apache-2.0
[rcgen v0.13.1](https://github.com/rustls/rcgen) - MIT OR Apache-2.0
[ring v0.17.8](https://github.com/briansmith/ring) -
[rustls v0.23.12](https://github.com/rustls/rustls) - Apache-2.0 OR ISC OR MIT
doc.rust-lang.org - cargo tree
2. cargo.toml 파일의 관계.
ring 프로젝트의 경우에 cargo.toml 내용에 license-file 속성으로 기록되어 있어서 안나오는 것이어요.
댓글이 사용 중지되었습니다.