forked from
stavola.xyz/mlf
A human-friendly DSL for ATProto Lexicons
1[package]
2name = "mlf-cli"
3version = "0.1.0"
4edition = "2024"
5license = "MIT"
6
7[[bin]]
8name = "mlf"
9path = "src/main.rs"
10
11[dependencies]
12mlf-lang = { path = "../mlf-lang" }
13mlf-validation = { path = "../mlf-validation" }
14mlf-codegen = { path = "../mlf-codegen" }
15mlf-diagnostics = { path = "../mlf-diagnostics" }
16mlf-lexicon-fetcher = { path = "../mlf-lexicon-fetcher" }
17clap = { version = "4.5.48", features = ["derive"] }
18miette = { version = "7", features = ["fancy"] }
19thiserror = "2"
20serde = { version = "1", features = ["derive"] }
21serde_json = "1"
22glob = "0.3"
23toml = "0.8"
24tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
25reqwest = { version = "0.12", features = ["json"] }
26chrono = { version = "0.4", features = ["serde"] }
27sha2 = "0.10"
28
29# Optional code generator plugins
30mlf-codegen-typescript = { path = "../codegen-plugins/mlf-codegen-typescript", optional = true }
31mlf-codegen-go = { path = "../codegen-plugins/mlf-codegen-go", optional = true }
32mlf-codegen-rust = { path = "../codegen-plugins/mlf-codegen-rust", optional = true }
33
34[features]
35default = ["typescript", "go", "rust"]
36typescript = ["dep:mlf-codegen-typescript"]
37go = ["dep:mlf-codegen-go"]
38rust = ["dep:mlf-codegen-rust"]