mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-28 21:50:26 +08:00
Extracting JSON Schemas from the Radicle crate can be done via
`radicle-cli` for `radicle::profile::Config` by executing:
rad config schema
However, for other JSON Schema metadata, this is not possible.
To allow other tools to extract JSON schemas as part of their build
process, introduce a new crate that only depends on `radicle`,
`schemars`, and `serde`, with a tiny binary that will reproduce various
schemas.
57 lines
1.2 KiB
TOML
57 lines
1.2 KiB
TOML
[workspace]
|
|
members = [
|
|
"radicle",
|
|
"radicle-cob",
|
|
"radicle-cli",
|
|
"radicle-cli-test",
|
|
"radicle-crdt",
|
|
"radicle-crypto",
|
|
"radicle-dag",
|
|
"radicle-fetch",
|
|
"radicle-node",
|
|
"radicle-remote-helper",
|
|
"radicle-ssh",
|
|
"radicle-tools",
|
|
"radicle-schemars",
|
|
"radicle-signals",
|
|
"radicle-systemd",
|
|
]
|
|
default-members = [
|
|
"radicle",
|
|
"radicle-cli",
|
|
"radicle-cob",
|
|
"radicle-crdt",
|
|
"radicle-crypto",
|
|
"radicle-node",
|
|
"radicle-ssh",
|
|
"radicle-remote-helper",
|
|
"radicle-term",
|
|
"radicle-signals",
|
|
"radicle-systemd",
|
|
]
|
|
resolver = "2"
|
|
|
|
[workspace.package]
|
|
version = "0.9.0"
|
|
|
|
# Even though some crates in this workspace may build fine
|
|
# on a lower version, we set it here and inherit in all
|
|
# crates. This is to simplify maintenance. As of 2025-05-13
|
|
# we do not have the capacity to think about `rust-version`
|
|
# *per crate*. If anyone ever wants to set it to a different
|
|
# value per crate, this is of course possible. We're waiting
|
|
# for the day it makes a difference…
|
|
rust-version = "1.81.0"
|
|
|
|
[workspace.dependencies]
|
|
schemars = { version = "1.0.0-alpha.17" }
|
|
|
|
[workspace.lints]
|
|
clippy.type_complexity = "allow"
|
|
clippy.enum_variant_names = "allow"
|
|
|
|
[profile.container]
|
|
inherits = "release"
|
|
debug = true
|
|
incremental = false
|