roas-codegen 0.2.0

Generate Rust and Go types from OpenAPI 2.0 / 3.0 / 3.1 / 3.2 descriptions
Documentation
[package]
name = "roas-codegen"
version = "0.2.0"
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
keywords = ["openapi", "codegen", "swagger", "rust", "golang"]
description = "Generate Rust and Go types from OpenAPI 2.0 / 3.0 / 3.1 / 3.2 descriptions"
readme = "README.md"
categories = ["development-tools", "web-programming"]
# `templates/` is not under `src`, so an explicit include is what keeps
# the embedded defaults in the published package.
include = ["src", "templates", "Cargo.toml", "README.md"]
publish = true

[package.metadata.docs.rs]
all-features = true

[features]
# Named, though empty, so CI tests the crate as it ships, not only with
# `exact-numbers` on.
default = []
# Keep every number exactly as written. A Cargo feature rather than a
# runtime setting because `serde_json/arbitrary_precision` is global to
# the build and changes how `serde_json::Value` compares numbers; the
# consumer opts in, never this crate on its behalf.
exact-numbers = ["roas/exact-numbers"]

[dependencies]
# All four versions unconditionally: normalizing every one of them to 3.2
# is the crate's premise, so a build that cannot hold a 2.0 document is
# not a build of this crate.
roas = { workspace = true, features = ["v2", "v3_0", "v3_1", "v3_2"] }
# Types that appear in the public API are direct dependencies even though
# each is transitive through `roas`: a caller names the same crate to
# construct an argument.
enumset.workspace = true
serde.workspace = true
# `float_roundtrip`: a number in the description is read as the float
# nearest it, as the generated code's decoder reads a value, so a bound or
# an enum value compares as written.
serde_json = { workspace = true, features = ["float_roundtrip"] }
serde-saphyr.workspace = true
thiserror.workspace = true
toml.workspace = true
url.workspace = true
minijinja.workspace = true
include_dir.workspace = true
syn.workspace = true
oxc_regular_expression.workspace = true
oxc_allocator.workspace = true
regex.workspace = true