Skip to content

Commit

Permalink
Specta v2 interop
Browse files Browse the repository at this point in the history
  • Loading branch information
oscartbeaumont committed May 1, 2024
1 parent 449d76d commit d32f718
Show file tree
Hide file tree
Showing 3 changed files with 406 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Cargo.toml
Expand Up @@ -30,7 +30,7 @@ required-features = ["export", "typescript"]
[features]
default = []

##! Internal Features
#! Features
## Support for exporting the types of Rust functions.
function = ["serde", "specta-macros/function"]
## Support for collecting up a global type map
Expand Down Expand Up @@ -103,6 +103,9 @@ bevy_ecs = ["dep:bevy_ecs"]
# [bevy_input](https://docs.rs/bevy_input) crate
bevy_input = ["dep:bevy_input", "dep:bevy_ecs", "dep:glam"]

# Internal features (unstable)
interop = ["dep:specta1"]

[dependencies]
specta-macros = { version = "=2.0.0-rc.10", path = "./macros" }
serde = { version = "1.0.183", optional = true, default-features = false, features = ["derive"] }
Expand Down Expand Up @@ -133,6 +136,7 @@ thiserror = "1.0.44"
paste = "1.0.14"
ctor = { version = "0.2.4", optional = true }
once_cell = "1.18.0"
specta1 = { package = "specta", version = "1", optional = true, default-features = false }

[dev-dependencies]
doc-comment = "0.3.3"
Expand Down
3 changes: 3 additions & 0 deletions src/internal.rs
Expand Up @@ -9,6 +9,9 @@ use std::borrow::Cow;
#[cfg(feature = "export")]
pub use ctor;

#[cfg(feature = "interop")]
pub mod interop;

#[cfg(feature = "function")]
pub use specta_macros::internal_fn_datatype;

Expand Down

0 comments on commit d32f718

Please sign in to comment.