Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
210 changes: 208 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ We are currently waiting for [#54140](https://github.com/rust-lang/rust/issues/5
| smol_str-impl | Implement `TS` for types from *smol_str* |
| tokio-impl | Implement `TS` for types from *tokio* |
| jiff-impl | Implement `TS` for types from *jiff* |
| rust_decimal-impl | Implement `TS` for types from *rust_de |
| arrayvec-impl | Implement `TS` for types from *arrayvec* |

### Contributing
Expand Down
3 changes: 3 additions & 0 deletions ts-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ heapless-impl = ["heapless"]
semver-impl = ["semver"]
smol_str-impl = ["smol_str"]
serde-json-impl = ["serde_json"]
rust-decimal-impl = ["rust_decimal", "serde", "rust_decimal/serde"]
no-serde-warnings = ["ts-rs-macros/no-serde-warnings"]
tokio-impl = ["tokio"]
jiff-impl = ["jiff"]
Expand Down Expand Up @@ -61,7 +62,9 @@ semver = { version = "1", optional = true }
smol_str = { version = "0.3", optional = true }
indexmap = { version = "2", optional = true }
ordered-float = { version = ">= 3, < 6", optional = true }
serde = { version = "1.0", optional = true }
serde_json = { version = "1", optional = true }
tokio = { version = "1", features = ["sync"], optional = true }
jiff = { version = "0.2", optional = true }
rust_decimal = { version = "1", optional = true }
arrayvec = { version = ">= 0.6, < 0.8", optional = true }
3 changes: 3 additions & 0 deletions ts-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
//! | smol_str-impl | Implement `TS` for types from *smol_str* |
//! | tokio-impl | Implement `TS` for types from *tokio* |
//! | jiff-impl | Implement `TS` for types from *jiff* |
//! | rust_decimal-impl | Implement `TS` for types from *rust_de |
//! | arrayvec-impl | Implement `TS` for types from *arrayvec* |
//!
//! ## Contributing
Expand Down Expand Up @@ -153,6 +154,8 @@ mod chrono;
mod export;
#[cfg(feature = "jiff-impl")]
mod jiff;
#[cfg(feature = "rust-decimal-impl")]
mod rust_decimal;
#[cfg(feature = "serde-json-impl")]
mod serde_json;
#[cfg(feature = "tokio-impl")]
Expand Down
Loading