[package] name = "sycamore-web" categories = ["gui", "wasm", "web-programming"] description = "proc-macro crate for Sycamore" edition = "2021" homepage = "https://github.com/sycamore-rs/sycamore" keywords = ["wasm", "gui", "reactive"] license = "MIT" readme = "../../README.md" repository = "https://github.com/sycamore-rs/sycamore" version.workspace = true [dependencies] futures = { version = "0.3.30", optional = true } js-sys = "0.3.67" paste = "1.0.14" once_cell = "1.19.0" smallvec = { version = "1.13.2", features = ["union", "const_generics"] } sycamore-core = { workspace = true } sycamore-futures = { workspace = true, optional = true } sycamore-macro = { workspace = true } sycamore-reactive = { workspace = true, features = ["wasm-bindgen"] } wasm-bindgen = "0.2.92" web-sys = { version = "0.3.69", features = [ "Comment", "console", "Node", "NodeList", "Window", "Document", "DocumentFragment", "Element", "EventListener", "HtmlElement", "Text", # Event types "Event", "AnimationEvent", "BeforeUnloadEvent", "CompositionEvent", "DeviceMotionEvent", "DeviceOrientationEvent", "DragEvent", "ErrorEvent", "Event", "FocusEvent", "GamepadEvent", "HashChangeEvent", "InputEvent", "KeyboardEvent", "MessageEvent", "MouseEvent", "PageTransitionEvent", "PointerEvent", "PopStateEvent", "ProgressEvent", "PromiseRejectionEvent", "SecurityPolicyViolationEvent", "StorageEvent", "SubmitEvent", "TouchEvent", "TransitionEvent", "WheelEvent", ] } [target.'cfg(any(not(target_arch = "wasm32"), syacmore_force_ssr))'.dependencies] html-escape = "0.2.13" async-stream = { version = "0.3.0", optional = true } [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] tokio = { version = "1.22.0", features = ["rt", "macros"] } tokio-test = "0.4.4" [dev-dependencies] sycamore = { path = "../sycamore" } expect-test = "1.4.1" [features] default = ["wasm-bindgen-interning"] hydrate = [] suspense = ["dep:sycamore-futures", "dep:futures", "dep:async-stream"] wasm-bindgen-interning = ["wasm-bindgen/enable-interning"] [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = [ "cfg(sycamore_force_ssr)", "cfg(rust_analyzer)", ] }