1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[]
= "fig"
= true
= true
= true
= "Parse, edit, and convert config files while preserving comments. Supports JSON, YAML, TOML, and more."
= "https://github.com/adammharris/fig"
# Rendered by crates.io on the package page. The file is the repo-root `fig.md`,
# copied in by `zig build vendor-rust` before publishing (git-ignored here, so
# `include` force-adds it to the tarball — see below). A local checkout that has
# not run the vendor step simply has no README.md; cargo only requires it when
# packaging/publishing, not for `build`/`test`.
= "README.md"
= "fig"
# The crate builds the fig core from Zig source (see build.rs). That source is
# not in this directory in a checkout — build.rs walks up to the repo root — so
# `zig build vendor-rust` copies it into ./zig before publishing. ./zig is
# git-ignored, so `include` (an allowlist that bypasses VCS rules) is what
# actually puts it in the packaged tarball.
# Precise paths (not `zig/**/*`) so a stray build cache — a `.zig-cache/` or
# `zig-out/` left by running `zig build` inside the vendor dir — never lands in
# the tarball. These mirror the set `vendor-rust` copies.
= [
"build.rs",
"src/**/*",
"zig/build.zig",
"zig/build.zig.zon",
"zig/src/**/*",
"zig/bindings/c/include/**/*",
# Vendored in by `zig build vendor-rust` from the repo root (git-ignored here).
"LICENSE-MIT",
"LICENSE-APACHE",
"README.md",
]
[]
= "fig"
= "src/lib.rs"
# JSON is in `default`, not implied by the base crate: `--no-default-features`
# compiles it out too (like any other language). `serde` is opt-in — the crate
# parses, edits, and serializes through the `Value` tree (and `#[derive]`) with
# no serde at all.
[]
= ["json", "yaml", "toml", "fig"]
# Typed (de)serialization: `to_string`/`from_str`, the editor's `T: Serialize`
# value methods, and serde impls for `Value`. Opt-in (not in `default`); without
# it, the binding still parses, edits, and serializes via the `Value` tree
# directly, and `#[derive(ToValue, FromValue)]` covers typed struct mapping.
= ["dep:serde"]
# Ergonomic typed mapping without serde: `#[derive(fig::ToValue, fig::FromValue)]`
# generates straight-line conversions to/from the concrete `Value` tree (no
# format-generic Visitor machinery), via the `fig-macros` proc-macro crate.
= ["dep:fig-macros"]
# `ToValue`/`FromValue` impls for `indexmap::IndexMap<String, T>`, preserving
# insertion order (unlike the std map impls). Opt-in to keep the dep optional.
= ["dep:indexmap"]
# Per-language gates, mirroring `build.zig`'s `-D<lang>` options. Each is passed
# through to the bundled `zig build` (see `build.rs`), so disabling a feature
# compiles that format's parser/printer out of the linked `libfig.a` and shrinks
# the binary. `json` gates the shared JSON/JSONC/JSON5 core. The `Format` enum
# keeps every variant regardless; selecting a format whose feature is off returns
# `Error::UnsupportedFormat` at runtime.
= []
= []
= []
= []
= []
= []
[]
= { = "1", = true }
= { = true, = true }
= { = "2", = true }
[]
= { = "1", = ["derive"] }