-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
85 lines (74 loc) · 2.29 KB
/
Cargo.toml
File metadata and controls
85 lines (74 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
[package]
name = "tokio-fs-ext"
version = "0.7.7"
edition = "2024"
authors = ["xusd320"]
description = "Extend tokio fs to be compatible with native and wasm"
license = "MIT"
repository = "https://github.com/xusd320/tokio-fs-ext.git"
keywords = ["tokio", "fs", "wasm", "opfs"]
[lib]
crate-type = ["cdylib", "rlib"]
[features]
default = []
opfs_offload = ["tokio/sync", "tokio/macros"]
opfs_watch = ["tokio/sync", "notify-types"]
opfs_tracing = ["tracing"]
[dependencies]
futures = "0.3.31"
cfg-if = "1.0.1"
[target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dependencies]
pin-project-lite = "0.2.16"
tokio = { version = "1.47.1", default-features = false, features = [
"fs",
"sync",
] }
tokio-stream = { version = "0.1.17", features = ["fs"] }
[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies]
js-sys = "0.3.85"
web-sys = { version = "0.3.85", features = [
"DedicatedWorkerGlobalScope",
"DomException",
"FileSystemDirectoryHandle",
"FileSystemFileHandle",
"FileSystemGetFileOptions",
"FileSystemGetDirectoryOptions",
"FileSystemHandle",
"FileSystemHandleKind",
"FileSystemHandlePermissionDescriptor",
"FileSystemReadWriteOptions",
"FileSystemRemoveOptions",
"FileSystemSyncAccessHandle",
"FileSystemWritableFileStream",
"Navigator",
"StorageManager",
"WorkerNavigator",
"File",
"Blob",
"console",
"Window",
] }
wasm-bindgen = { version = "0.2.108", default-features = false }
wasm-bindgen-futures = { version = "0.4.58", features = [
"futures-core-03-stream",
] }
tokio = { version = "1.47.1", default-features = false, optional = true }
bitflags = "2.9.1"
rustc-hash = "2.1.1"
notify-types = { version = "2.0.0", optional = true }
tracing = { version = "0.1.41", optional = true }
[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dev-dependencies]
wasm-bindgen-test = "0.3.58"
[target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dev-dependencies]
tokio = { version = "1.47.1", features = ["macros", "test-util"] }
[package.metadata.wasm-pack.profile.dev.wasm-bindgen]
dwarf-debug-info = true
[package.metadata.docs.rs]
targets = [
"x86_64-pc-windows-msvc",
"x86_64-unknown-linux-gnu",
"aarch64-unknown-linux-gnu",
"x86_64-apple-darwin",
"aarch64-apple-darwin",
"wasm32-unknown-unknown",
]