Skip to content

Commit

Permalink
tlmcmddb-cli: introduce notalawyer to embed license notice into binary
Browse files Browse the repository at this point in the history
  • Loading branch information
sksat committed Nov 27, 2024
1 parent 8f21eb0 commit cdac34b
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 1 deletion.
24 changes: 24 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions tlmcmddb-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ readme.workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[build-dependencies]
notalawyer-build = "0.2"

[dependencies]
anyhow = { version = "1", features = ["backtrace"] }
clap = { version = "4.4.11", features = ["derive"] }
tlmcmddb = "2.5"
tlmcmddb-csv = "2.5"
serde_json = "1"
notalawyer-clap = "0.2"
5 changes: 5 additions & 0 deletions tlmcmddb-cli/about.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
accepted = [
"MIT",
"Apache-2.0",
"Unicode-DFS-2016",
]
5 changes: 5 additions & 0 deletions tlmcmddb-cli/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fn main() {
println!("cargo:rerun-if-changed=Cargo.toml");

notalawyer_build::build();
}
3 changes: 2 additions & 1 deletion tlmcmddb-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use std::{

use anyhow::{anyhow, Context, Result};
use clap::{Parser, Subcommand};
use notalawyer_clap::*;
use tlmcmddb::Database;

#[derive(Parser)]
Expand Down Expand Up @@ -135,7 +136,7 @@ impl DatabaseSet {
}

fn main() -> Result<()> {
let cli = Cli::parse();
let cli = Cli::parse_with_license_notice(include_notice!());
match cli.command {
Command::Bundle {
tlm_db_dir,
Expand Down

0 comments on commit cdac34b

Please sign in to comment.