|
1 | | -[package] |
2 | | -name = "dioxus-std" |
3 | | -version = "0.4.0" |
4 | | -authors = ["Jonathan Kelley", "Dioxus Labs", "ealmloff", "DogeDark"] |
5 | | -edition = "2021" |
6 | | -description = "Platform agnostic library for supercharging your productivity with Dioxus" |
7 | | -license = "MIT" |
8 | | -repository = "https://github.com/DioxusLabs/dioxus-std/" |
9 | | -homepage = "https://dioxuslabs.com" |
10 | | -keywords = ["dom", "gui", "dioxus", "standard", "hooks"] |
11 | | -categories = ["multimedia","os", "wasm"] |
12 | | - |
13 | | -# This is making it harder to develop for a specific platform when examples are different targets. |
14 | | -# Workaround: Open example project as it's own project. |
15 | | -#[workspace] |
16 | | -#members = ["./examples/*"] |
17 | | - |
18 | | -[features] |
19 | | -clipboard = ["dep:copypasta"] |
20 | | -notifications = ["dep:notify-rust"] |
21 | | -geolocation = ["dep:windows", "dep:futures-util", "dep:futures", "dep:web-sys", "dep:wasm-bindgen", "utils"] |
22 | | -color_scheme = ["dep:web-sys", "dep:wasm-bindgen", "dep:wasm-bindgen-futures"] |
23 | | -utils = ["dep:async-broadcast", "dep:uuid"] |
24 | | -i18n = ["dep:serde", "dep:serde_json", "dep:unic-langid"] |
25 | | -all = ["clipboard", "notifications", "geolocation", "color_scheme", "utils", "i18n"] |
26 | | - |
27 | | -# CI testing |
28 | | -wasm-testing = ["geolocation", "color_scheme", "utils", "i18n"] |
29 | | -desktop-testing = ["clipboard", "notifications", "geolocation", "utils", "i18n"] |
30 | | - |
31 | | -[dependencies] |
32 | | -dioxus = { version = "0.4" } |
33 | | -cfg-if = "1.0.0" |
34 | | - |
35 | | -# utils |
36 | | -uuid = { version = "1.3.2", features = ["v4"], optional = true } |
37 | | -async-broadcast = { version = "0.5.1", optional = true } |
38 | | -# clipboard |
39 | | -copypasta = { version = "0.8.2", optional = true } |
40 | | -# notifications |
41 | | -notify-rust = { version = "4.8.0", optional = true } |
42 | | -# geolocation |
43 | | -futures = { version = "0.3.28", features = ["std"], optional = true } |
44 | | -futures-util = {version = "0.3.28", optional = true } |
45 | | -# i18n |
46 | | -serde = { version = "1.0.163", optional = true } |
47 | | -serde_json = { version = "1.0.96", optional = true } |
48 | | -unic-langid = { version = "0.9.1", features = ["serde"], optional = true } |
49 | | - |
50 | | -[target.'cfg(windows)'.dependencies] |
51 | | -windows = { version = "0.48.0", features = ["Foundation", "Devices_Geolocation"], optional = true } |
52 | | - |
53 | | -[target.'cfg(target_family = "wasm")'.dependencies] |
54 | | -web-sys = { version = "0.3.60", features = ["Window", "MediaQueryList", "Navigator", "Geolocation", "PositionOptions"], optional = true } |
55 | | -wasm-bindgen = { version = "0.2.87", optional = true } |
56 | | -wasm-bindgen-futures = { version = "0.4.35", optional = true} |
57 | | -js-sys = "0.3.62" |
58 | | -# channel |
59 | | -uuid = { version = "1.3.2", features = ["v4", "js"]} |
60 | | - |
61 | | -[package.metadata.docs.rs] |
62 | | -default-target = "x86_64-pc-windows-msvc" |
63 | | -no-default-features = true |
64 | | -features = ["desktop-testing"] |
65 | | - |
| 1 | +[workspace] |
| 2 | +members = [ |
| 3 | + "std", |
| 4 | + "examples/*", |
| 5 | +] |
| 6 | + |
| 7 | +[workspace.dependencies] |
| 8 | +dioxus-std = { path = "./std"} |
0 commit comments