Skip to content

Commit

Permalink
spacedrive changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendonovich committed May 9, 2024
1 parent e701c00 commit 99b6a4a
Show file tree
Hide file tree
Showing 20 changed files with 7,900 additions and 1,796 deletions.
1,969 changes: 1,273 additions & 696 deletions Cargo.lock

Large diffs are not rendered by default.

12 changes: 8 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ members = [
"tests/*/*",
"crates/*",
"crates/sdk/example/*",
"prisma-cli"
"prisma-cli",
]
exclude = ["examples/tauri"]
resolver = "2"
Expand All @@ -27,7 +27,11 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

convert_case = "0.6.0"
rspc = { version = "=1.0.0-rc.5" }

specta = { version = "=2.0.0-rc.1" }
tauri-specta = { git = "https://github.com/oscartbeaumont/tauri-specta", branch = "v2" }
tauri-specta = { version = "2.0.0-rc.9" }
# As this is SD's fork this is okay.
# We will always lock the version within Spacedrive.
rspc = "*"

# We don't lock version cause PCR only depends on `derive(Type)` so it should be fine.
specta = "^2.0.0-rc"
5 changes: 4 additions & 1 deletion crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ proc-macro2 = "1.0.39"
http = "0.2.6"
directories = "4.0.1"
flate2 = "1.0.23"
reqwest = { version = "0.11.10", features = ["blocking"] }
reqwest = { version = "0.11.10", features = [
"blocking",
"native-tls-vendored",
] }
regex = "1.5.5"
thiserror = "1.0.37"

Expand Down
5 changes: 4 additions & 1 deletion crates/generator-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ edition = "2021"
[lib]
proc-macro = true

[features]
specta = []

[dependencies]
prisma-client-rust-generator-shared = { path = "../generator-shared" }
convert_case.workspace = true
proc-macro2 = "1.0.39"
quote = "1.0.18"
syn = "1.0.91"

specta = { workspace = true, optional = true }
# specta = { workspace = true, optional = true }
5 changes: 4 additions & 1 deletion crates/generator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ proc-macro2 = "1.0.39"
http = "0.2.6"
directories = "4.0.1"
flate2 = "1.0.23"
reqwest = { version = "0.11.10", features = ["blocking"] }
reqwest = { version = "0.11.10", features = [
"blocking",
"native-tls-vendored",
] }
regex = "1.5.5"
thiserror = "1.0.37"

Expand Down
2 changes: 1 addition & 1 deletion crates/generator/src/composite_types/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub fn struct_definition(ty: CompositeTypeWalker) -> TokenStream {

quote! {
#[derive(::prisma_client_rust::specta::Type)]
#[specta(rename = #ty_name_pascal_str, crate = "prisma_client_rust::specta")]
#[specta(rename = #ty_name_pascal_str, crate = prisma_client_rust::specta)]
}
});

Expand Down
2 changes: 1 addition & 1 deletion crates/generator/src/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub fn generate(args: &GenerateArgs) -> TokenStream {

quote! {
#[derive(::prisma_client_rust::specta::Type)]
#[specta(rename = #model_name_pascal_str, crate = "prisma_client_rust::specta")]
#[specta(rename = #model_name_pascal_str, crate = prisma_client_rust::specta)]
}
});

Expand Down
2 changes: 1 addition & 1 deletion crates/generator/src/models/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ pub fn r#struct(model: ModelWalker) -> TokenStream {

quote! {
#[derive(::prisma_client_rust::specta::Type)]
#[specta(rename = #model_name_pascal_str, crate = "prisma_client_rust::specta")]
#[specta(rename = #model_name_pascal_str, crate = prisma_client_rust::specta)]
}
});

Expand Down
Loading

0 comments on commit 99b6a4a

Please sign in to comment.