Skip to content

Commit f7958df

Browse files
Add typst-gather analyze subcommand, bump to 0.2.0
Add analyze subcommand that scans .typ files for @Preview and @Local imports, follows transitive deps of @Local packages, and outputs structured JSON to stdout without downloading or copying anything. - Restructure CLI to subcommands (gather/analyze) with backwards compat - Support reading config from stdin with `-` - Move all println! to eprintln! so stdout is clean for JSON output - Add AnalyzeResult/ImportInfo types with serde Serialize - Deduplicate imports by (namespace, name, version), direct wins
1 parent 2d495fa commit f7958df

File tree

6 files changed

+1676
-22
lines changed

6 files changed

+1676
-22
lines changed

Cargo.lock

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "typst-gather"
3-
version = "0.1.3"
3+
version = "0.2.0"
44
edition = "2021"
55
repository = "https://github.com/quarto-dev/typst-gather"
66
rust-version = "1.81"
@@ -10,10 +10,12 @@ typst-kit = { version = "0.14.2", features = ["packages"] }
1010
typst-syntax = "0.14.2"
1111
ecow = "0.2"
1212
serde = { version = "1", features = ["derive"] }
13+
serde_json = "1"
1314
clap = { version = "4", features = ["derive"] }
1415
toml = "0.8"
1516
walkdir = "2"
1617
globset = "0.4"
1718

1819
[dev-dependencies]
1920
tempfile = "3"
21+
serde_json = "1"

0 commit comments

Comments
 (0)