Radish alpha
r
rad:z4D5UCArafTzTQpDZNQRuqswh3ury
Radicle desktop app
Radicle
Git
Add radicle, thiserror and ts-rs dependencies
Merged did:key:z6MkkfM3...sVz5 opened 1 year ago

This allows us to interact with the Radicle storage, allow us to handle the git2, radicle-surf and other errors and serialize Rust types into Typescript

2 files changed +110 -5 52c491d2 1a95a7e8
modified src-tauri/Cargo.lock
@@ -211,6 +211,12 @@ checksum = "23ce669cd6c8588f79e15cf450314f9638f967fc5770ff1c7c1deb0925ea7cfa"

[[package]]
name = "base64"
+
version = "0.13.1"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8"
+

+
[[package]]
+
name = "base64"
version = "0.21.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"
@@ -1136,6 +1142,18 @@ dependencies = [
]

[[package]]
+
name = "filetime"
+
version = "0.2.24"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "bf401df4a4e3872c4fe8151134cf483738e74b67fc934d6532c882b3d24a4550"
+
dependencies = [
+
 "cfg-if",
+
 "libc",
+
 "libredox",
+
 "windows-sys 0.59.0",
+
]
+

+
[[package]]
name = "flate2"
version = "1.0.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -2120,6 +2138,7 @@ checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d"
dependencies = [
 "bitflags 2.6.0",
 "libc",
+
 "redox_syscall",
]

[[package]]
@@ -2341,6 +2360,12 @@ checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb"

[[package]]
name = "nonempty"
+
version = "0.5.0"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "9ff7ac1e5ea23db6d61ad103e91864675049644bf47c35912336352fa4e9c109"
+

+
[[package]]
+
name = "nonempty"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "995defdca0a589acfdd1bd2e8e3b896b4d4f7675a31fd14c32611440c7f608e6"
@@ -3092,7 +3117,7 @@ dependencies = [
 "localtime",
 "log",
 "multibase",
-
 "nonempty",
+
 "nonempty 0.9.0",
 "once_cell",
 "radicle-cob",
 "radicle-crypto",
@@ -3116,7 +3141,7 @@ dependencies = [
 "fastrand",
 "git2",
 "log",
-
 "nonempty",
+
 "nonempty 0.9.0",
 "once_cell",
 "radicle-crypto",
 "radicle-dag",
@@ -3159,12 +3184,15 @@ name = "radicle-desktop"
version = "0.0.0"
dependencies = [
 "radicle",
+
 "radicle-surf",
 "serde",
 "serde_json",
 "tauri",
 "tauri-build",
 "tauri-plugin-shell",
 "tauri-plugin-window-state",
+
 "thiserror",
+
 "ts-rs",
]

[[package]]
@@ -3200,6 +3228,25 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "db20136bbc9ae63f3fec8e5a6c369f4902fac2244501b5dfc6d668e43475aaa4"

[[package]]
+
name = "radicle-surf"
+
version = "0.21.0"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "5fae23233ff8be809a822d923e93e56e5282179039b19f345f39f592c1ca0765"
+
dependencies = [
+
 "anyhow",
+
 "base64 0.13.1",
+
 "flate2",
+
 "git2",
+
 "log",
+
 "nonempty 0.5.0",
+
 "radicle-git-ext",
+
 "radicle-std-ext",
+
 "tar",
+
 "thiserror",
+
 "url",
+
]
+

+
[[package]]
name = "rand"
version = "0.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -4105,6 +4152,17 @@ dependencies = [
]

[[package]]
+
name = "tar"
+
version = "0.4.41"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "cb797dad5fb5b76fcf519e702f4a589483b5ef06567f160c392832c1f5e44909"
+
dependencies = [
+
 "filetime",
+
 "libc",
+
 "xattr",
+
]
+

+
[[package]]
name = "target-lexicon"
version = "0.12.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -4392,6 +4450,15 @@ dependencies = [
]

[[package]]
+
name = "termcolor"
+
version = "1.4.1"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755"
+
dependencies = [
+
 "winapi-util",
+
]
+

+
[[package]]
name = "thin-slice"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -4676,6 +4743,29 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"

[[package]]
+
name = "ts-rs"
+
version = "9.0.1"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "b44017f9f875786e543595076374b9ef7d13465a518dd93d6ccdbf5b432dde8c"
+
dependencies = [
+
 "serde_json",
+
 "thiserror",
+
 "ts-rs-macros",
+
]
+

+
[[package]]
+
name = "ts-rs-macros"
+
version = "9.0.1"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "c88cc88fd23b5a04528f3a8436024f20010a16ec18eb23c164b1242f65860130"
+
dependencies = [
+
 "proc-macro2",
+
 "quote",
+
 "syn 2.0.72",
+
 "termcolor",
+
]
+

+
[[package]]
name = "typeid"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -5479,6 +5569,17 @@ dependencies = [
]

[[package]]
+
name = "xattr"
+
version = "1.3.1"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "8da84f1a25939b27f6820d92aed108f83ff920fdf11a7b19366c27c4cda81d4f"
+
dependencies = [
+
 "libc",
+
 "linux-raw-sys",
+
 "rustix",
+
]
+

+
[[package]]
name = "zeroize"
version = "1.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
modified src-tauri/Cargo.toml
@@ -19,12 +19,16 @@ crate-type = ["staticlib", "cdylib", "lib"]
tauri-build = { version = "2.0.0-rc.0", features = ["isolation"] }

[dependencies]
-
serde_json = "1.0"
+
radicle = "0.12.0"
+
radicle = { version = "0.12.0" }
+
radicle-surf = { version = "0.21.0" }
serde = { version = "1.0", features = ["derive"] }
+
serde_json = { version = "1.0" }
tauri = { version = "2.0.0-rc.0", features = ["isolation"] }
-
tauri-plugin-shell = "2.0.0-rc.0"
-
radicle = "0.12.0"
+
tauri-plugin-shell = { version = "2.0.0-rc.0" }
tauri-plugin-window-state = "2.0.0-rc.1"
+
thiserror = { version = "1.0.63" }
+
ts-rs = { version = "9.0.1", features = ["serde-json-impl"] }

[features]
# by default Tauri runs in production mode