79 lines
2.3 KiB
TOML
79 lines
2.3 KiB
TOML
[workspace]
|
|
members = [
|
|
"components",
|
|
"widgets/file_browser_widget",
|
|
]
|
|
resolver = "2"
|
|
|
|
[package]
|
|
name = "framework"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[[bin]]
|
|
name = "framework"
|
|
path = "cmd/main.rs"
|
|
|
|
[workspace.dependencies]
|
|
# Shared dependencies across workspace
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
log = "0.4"
|
|
thiserror = "1.0"
|
|
uuid = { version = "1.0", features = ["v4", "js"] }
|
|
futures-util = "0.3"
|
|
futures-channel = "0.3"
|
|
|
|
# WASM-specific dependencies
|
|
wasm-bindgen = "0.2"
|
|
wasm-bindgen-futures = "0.4"
|
|
yew = { version = "0.21", features = ["csr"] }
|
|
gloo = "0.11"
|
|
gloo-timers = { version = "0.3", features = ["futures"] }
|
|
web-sys = { version = "0.3", features = [
|
|
"Storage", "Window", "FormData", "HtmlFormElement", "HtmlInputElement", "HtmlSelectElement",
|
|
"Request", "RequestInit", "RequestMode", "Response", "Headers", "Blob", "Url",
|
|
"HtmlAnchorElement", "Document", "Element", "CssStyleDeclaration", "Location",
|
|
"UrlSearchParams", "HtmlTextAreaElement", "HtmlButtonElement", "HtmlDivElement",
|
|
"Event", "EventTarget", "MouseEvent", "KeyboardEvent", "InputEvent",
|
|
"File", "FileList", "AbortController", "AbortSignal", "console", "History",
|
|
"HtmlImageElement", "HtmlCanvasElement", "Navigator", "Notification",
|
|
"WebSocket", "MessageEvent", "CloseEvent", "ErrorEvent",
|
|
"DomException", "Performance", "HtmlMetaElement", "HtmlLinkElement",
|
|
"Node", "NodeList", "HtmlCollection", "DomTokenList",
|
|
"CustomEvent", "FocusEvent", "WheelEvent", "TouchEvent", "Touch", "TouchList",
|
|
"DragEvent", "DataTransfer", "ClipboardEvent",
|
|
"HtmlIFrameElement", "MessagePort"
|
|
] }
|
|
js-sys = "0.3"
|
|
wasm-bindgen-test = "0.3"
|
|
|
|
# HTTP client
|
|
reqwest = { version = "0.11", features = ["json"] }
|
|
|
|
# Tokio for async runtime
|
|
tokio = { version = "1.0", features = ["full"] }
|
|
|
|
# Axum for web server
|
|
axum = "0.7"
|
|
tower = "0.4"
|
|
tower-http = { version = "0.5", features = ["fs", "cors"] }
|
|
|
|
# Internal workspace dependencies
|
|
components = { path = "components" }
|
|
|
|
[dependencies]
|
|
# Use workspace dependencies for the binary
|
|
components = { workspace = true }
|
|
tokio = { workspace = true }
|
|
axum = { workspace = true }
|
|
tower = { workspace = true }
|
|
tower-http = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
log = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
env_logger = "0.11"
|
|
|
|
|