-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the CLI into its own crate (#1351)
* Fetch the wasm-bindgen-cli version from Cargo.lock instead of Cargo.toml * Move the Nickel CLI to a separate crate * Fix snapshot tests * Rename the nickel flake output to nickel-lang-cli for consistency * Move the nickel-lang crate into a subdirectory * Update documentation for the new crate split * Tweak snapshot test instructions * Use project_root instead of ad-hoc environment variables * Remove the library from nickel-lang-cli for now * Rename nickel-lang to nickel-lang-lib and nickel-lang-cli to nickel-lang * Apply suggestions from code review Co-authored-by: Yann Hamdaoui <[email protected]> * Tweak documentation for nickel_lang_utilities::project_root * Use MacOS 13 github runner because of cachix/install-nix-action#183 --------- Co-authored-by: Yann Hamdaoui <[email protected]>
- Loading branch information
Showing
453 changed files
with
434 additions
and
374 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,127 +1,19 @@ | ||
[package] | ||
name = "nickel-lang" | ||
version = "1.0.0" | ||
authors = ["Nickel team"] | ||
license = "MIT" | ||
readme = "README.md" | ||
description = "Programmable configuration files." | ||
homepage = "https://nickel-lang.org" | ||
repository = "https://github.com/tweag/nickel" | ||
keywords = ["configuration", "language", "nix"] | ||
edition = "2021" | ||
|
||
[[bin]] | ||
name = "nickel" | ||
path = "src/bin/nickel.rs" | ||
bench = false | ||
|
||
[lib] | ||
bench = false | ||
|
||
[features] | ||
default = ["markdown", "repl", "doc"] | ||
markdown = ["termimad"] | ||
repl = ["rustyline", "rustyline-derive", "ansi_term"] | ||
repl-wasm = ["wasm-bindgen", "js-sys", "serde_repr"] | ||
doc = ["comrak"] | ||
|
||
[build-dependencies] | ||
lalrpop = "0.19.9" | ||
|
||
[dependencies] | ||
lalrpop-util = "0.19.9" | ||
regex = "1" | ||
simple-counter = "0.1.0" | ||
clap = { version = "4.3", features = ["derive"] } | ||
codespan = "0.11" | ||
codespan-reporting = "0.11" | ||
logos = "0.12" | ||
serde = { version = "1.0.154", features = ["derive"] } | ||
serde_json = "1.0.94" | ||
serde_yaml = "0.9.19" | ||
toml = { version = "0.7.2", features = ["parse"] } | ||
void = "1" | ||
sha-1 = "0.10.0" | ||
sha2 = "0.10.6" | ||
md-5 = "0.10.5" | ||
directories = "4.0.1" | ||
unicode-segmentation = "1.10.1" | ||
indoc = "2" | ||
|
||
termimad = { version = "0.23.0", optional = true } | ||
ansi_term = { version = "0.12", optional = true } | ||
|
||
rustyline = { version = "11.0", optional = true} | ||
rustyline-derive = { version = "0.8.0", optional = true } | ||
|
||
# The `wasm-bindgen` version is pinned (`=`) because it must be a version | ||
# available in Nixpkgs. | ||
wasm-bindgen = { version = "=0.2.83", optional = true, features = ["serde-serialize"] } | ||
serde-wasm-bindgen = "0.5.0" | ||
js-sys = { version = "0.3", optional = true } | ||
serde_repr = { version = "0.1", optional = true } | ||
pretty = "0.11.3" | ||
|
||
comrak = { version = "0.17.0", optional = true, features = [] } | ||
once_cell = "1.17.1" | ||
typed-arena = "2.0.2" | ||
malachite = {version = "0.3.2", features = ["enable_serde"] } | ||
malachite-q = "0.3.2" | ||
indexmap = {version = "1.9.3", features = ["serde"] } | ||
strip-ansi-escapes = "0.1.1" | ||
|
||
[dev-dependencies] | ||
pretty_assertions = "1.3.0" | ||
assert_matches = "1.5.0" | ||
criterion = "0.4" | ||
pprof = { version = "0.11.1", features = ["criterion", "flamegraph"] } | ||
nickel-lang-utilities = {path = "utilities", version = "1.0.0"} | ||
similar = "2.2.1" | ||
test-generator = "0.3.1" | ||
insta = { version = "1.28.0", features = ["filters"] } | ||
|
||
[workspace] | ||
members = [ | ||
".", | ||
"nickel-lang-lib", | ||
"nickel-lang-cli", | ||
"lsp/nls", | ||
"lsp/lsp-harness", | ||
"utilities", | ||
"nickel-wasm-repl", | ||
"pyckel", | ||
] | ||
|
||
# Enable this to use flamegraphs | ||
# [profile.release] | ||
# debug = true | ||
|
||
[[bench]] | ||
name = "numeric" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "functions" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "arrays" | ||
harness = false | ||
|
||
# [[bench]] | ||
# name = "records" | ||
# harness = false | ||
|
||
[[bench]] | ||
name = "serialization" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "mantis" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "stdlib" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "typecheck-nixpkgs-lib" | ||
harness = false | ||
[workspace.package] | ||
version = "1.0.0" | ||
authors = ["The Nickel Team <[email protected]>"] | ||
license = "MIT" | ||
edition = "2021" | ||
keywords = ["configuration", "language", "nix", "nickel"] | ||
repository = "https://github.com/tweag/nickel" | ||
homepage = "https://nickel-lang.org" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.