Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
88 lines (77 loc) · 4.07 KB
/
Copy pathCargo.toml
File metadata and controls
88 lines (77 loc) · 4.07 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
86
87
88
[workspace]
members = ["xtask"]
default-members = ["."]
resolver = "3"
[package]
name = "roamlog"
version = "0.1.0"
edition = "2024"
authors = ["Kevin Plaizier"]
description = "Local-first trip recording and traveled-road history for Android"
license = "Apache-2.0"
readme = "README.md"
[dependencies]
serde = { version = "1", features = ["derive"] }
serde_json = "1"
flate2 = "1.1"
libc = "0.2"
zgui = { git = "https://github.com/Quick-Flash/zgui", rev = "3f13e128fe73e62648ac1e9a12b9beaa70354ef9", optional = true }
zgui-ui = { git = "https://github.com/Quick-Flash/zgui", rev = "3f13e128fe73e62648ac1e9a12b9beaa70354ef9", optional = true }
zgui-ui-tokens = { git = "https://github.com/Quick-Flash/zgui", rev = "3f13e128fe73e62648ac1e9a12b9beaa70354ef9", optional = true }
zgui-ui-icons = { git = "https://github.com/Quick-Flash/zgui", rev = "3f13e128fe73e62648ac1e9a12b9beaa70354ef9", optional = true }
zgui-image = { git = "https://github.com/Quick-Flash/zgui", rev = "3f13e128fe73e62648ac1e9a12b9beaa70354ef9", optional = true }
plot = { package = "zgui-plot", git = "https://github.com/Quick-Flash/zgui-plot", rev = "40757c406d0384a36434a8baf0fd3fad512b33ed", optional = true }
kurbo = { version = "0.13.1", optional = true }
image = { version = "0.25.10", default-features = false, features = ["png", "webp", "jpeg"], optional = true }
ureq = { version = "3.4.2", default-features = false, features = ["rustls"], optional = true }
async-channel = { version = "2.5", optional = true }
tiny-skia = { version = "0.11", optional = true }
ab_glyph = { version = "0.2", optional = true }
png = { version = "0.17", optional = true }
sha2 = { version = "0.10.9", optional = true }
tempfile = "3"
iroh = { version = "1.4.1", default-features = false, features = ["tls-ring"], optional = true }
tokio = { version = "1", features = ["rt-multi-thread", "macros", "time", "sync"], optional = true }
base64 = { version = "0.22", optional = true }
qrcodegen = { version = "1.8", optional = true }
quircs = { version = "0.10", optional = true }
subtle = { version = "2.6", optional = true }
blake3 = { version = "1.8", optional = true }
postcard = { version = "1.1", default-features = false, features = ["alloc"], optional = true }
[features]
default = ["ui"]
sharing = ["dep:security-framework", "dep:iroh", "dep:tokio", "dep:base64", "dep:qrcodegen", "dep:quircs", "dep:subtle", "dep:postcard", "dep:blake3"]
ui = ["dep:zgui", "dep:zgui-ui", "dep:zgui-ui-tokens", "dep:zgui-ui-icons", "dep:zgui-image", "dep:plot", "dep:kurbo", "dep:image", "dep:ureq", "dep:async-channel", "dep:tiny-skia", "dep:ab_glyph", "dep:png", "dep:sha2"]
[lib]
crate-type = ["rlib", "cdylib"]
[patch.crates-io]
# iOS build fix for iroh's netwatch dependency; see vendor/netdev/src/interface/ipv6_addr_flags.rs.
netdev = { path = "vendor/netdev" }
# iOS: Darwin route constants libc now gates to macOS; see vendor/netwatch/src/ios_libc.rs.
netwatch = { path = "vendor/netwatch" }
fontique = { git = "https://github.com/Quick-Flash/zgui", rev = "3f13e128fe73e62648ac1e9a12b9beaa70354ef9" }
accesskit_android = { git = "https://github.com/Quick-Flash/zgui", rev = "3f13e128fe73e62648ac1e9a12b9beaa70354ef9" }
[patch."https://github.com/zortax/zgui"]
zgui = { git = "https://github.com/Quick-Flash/zgui", rev = "3f13e128fe73e62648ac1e9a12b9beaa70354ef9" }
zgui-ui = { git = "https://github.com/Quick-Flash/zgui", rev = "3f13e128fe73e62648ac1e9a12b9beaa70354ef9" }
[dev-dependencies]
zgui-testkit-view = { git = "https://github.com/Quick-Flash/zgui", rev = "3f13e128fe73e62648ac1e9a12b9beaa70354ef9" }
[[example]]
name = "sharing_probe"
required-features = ["sharing"]
[[example]]
name = "demo_data"
required-features = ["ui"]
[target.'cfg(target_os = "android")'.dependencies]
jni = "0.22.4"
[target.'cfg(target_os = "ios")'.dependencies]
objc2 = "0.6"
objc2-foundation = "0.3"
objc2-core-location = "0.3"
objc2-ui-kit = { version = "0.3", features = ["objc2-uniform-type-identifiers"] }
objc2-uniform-type-identifiers = "0.3"
dispatch2 = "0.3"
objc2-user-notifications = "0.3"
block2 = "0.6"
# Keychain-stored sharing identity.
security-framework = { version = "3.7", optional = true }