[package]
edition = "2024"
name = "ts-function"
version = "0.4.0"
build = false
include = [
"Cargo.toml",
"src",
"README.md",
"LICENSE-MIT",
"LICENSE-APACHE",
"tests",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A proc-macro that generates TypeScript type aliases and wasm-bindgen ABI trait impls for Rust typed function wrappers"
homepage = "https://github.com/logankaser/ts-function"
documentation = "https://docs.rs/ts-function"
readme = "README.md"
keywords = [
"wasm-bindgen",
"typescript",
"function",
"macro",
]
categories = [
"wasm",
"web-programming",
"development-tools::ffi",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/logankaser/ts-function"
[lib]
name = "ts_function"
path = "src/lib.rs"
proc-macro = true
[[test]]
name = "args"
path = "tests/args.rs"
[[test]]
name = "basic"
path = "tests/basic.rs"
[[test]]
name = "enums"
path = "tests/enums.rs"
[[test]]
name = "errors"
path = "tests/errors.rs"
[[test]]
name = "generic_collections"
path = "tests/generic_collections.rs"
[[test]]
name = "jsvalue_roundtrip"
path = "tests/jsvalue_roundtrip.rs"
[[test]]
name = "nested"
path = "tests/nested.rs"
[[test]]
name = "return_values"
path = "tests/return_values.rs"
[[test]]
name = "types"
path = "tests/types.rs"
[dependencies.heck]
version = "0.5"
[dependencies.js-sys]
version = "0.3"
[dependencies.proc-macro2]
version = "1.0"
[dependencies.quote]
version = "1.0"
[dependencies.syn]
version = "2.0"
features = [
"full",
"extra-traits",
]
[dependencies.wasm-bindgen]
version = "0.2"
[dev-dependencies.wasm-bindgen-test]
version = "0.3"