Skip to content

Commit

Permalink
update: ignore non .rs files in migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
GoranBrkuljan committed Feb 21, 2024
1 parent cc9332e commit a85f814
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 12 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions charybdis-migrate/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
name = "charybdis-migrate"
rust-version = "1.75.0"
version = "0.4.0"
version = "0.4.1"
edition = "2021"
description = "Automatic Migration Tool for Charybdis ORM"
repository = "https://github.com/nodecosmos/charybdis"
license = "MIT"

[dependencies]
charybdis_parser = { version = "0.4.0", path = "../charybdis_parser" }
charybdis_parser = { version = "0.4.1", path = "../charybdis_parser" }
scylla = "0.12.0"
tokio = { version = "1.27.0", features = ["full"] }
serde_json = "1.0.95"
Expand Down
4 changes: 2 additions & 2 deletions charybdis/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "charybdis"
rust-version = "1.75.0"
version = "0.4.0"
version = "0.4.1"
edition = "2021"
description = "High-Performance ORM for ScyllaDB"
repository = "https://github.com/nodecosmos/charybdis"
Expand All @@ -10,7 +10,7 @@ license = "MIT"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
charybdis_macros = { version = "0.4.0", path = "../charybdis_macros" }
charybdis_macros = { version = "0.4.1", path = "../charybdis_macros" }
chrono = { version = "0.4.24", features = ["serde"] }
futures = "0.3.28"
num-bigint = "0.4.3"
Expand Down
4 changes: 2 additions & 2 deletions charybdis_macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "charybdis_macros"
rust-version = "1.75.0"
version = "0.4.0"
version = "0.4.1"
edition = "2021"
description = "Proc macro crate for Charybdis ORM"
repository = "https://github.com/nodecosmos/charybdis"
Expand All @@ -11,7 +11,7 @@ license = "MIT"
proc-macro = true

[dependencies]
charybdis_parser = { version = "0.4.0", path = "../charybdis_parser" }
charybdis_parser = { version = "0.4.1", path = "../charybdis_parser" }
proc-macro2 = "1.0.64"
syn = { version = "2.0.10", features = ["full"] }
quote = "1.0.26"
Expand Down
2 changes: 1 addition & 1 deletion charybdis_parser/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "charybdis_parser"
rust-version = "1.75.0"
version = "0.4.0"
version = "0.4.1"
edition = "2021"
description = "Parser crate for Charybdis ORM"
repository = "https://github.com/nodecosmos/charybdis"
Expand Down
4 changes: 3 additions & 1 deletion charybdis_parser/src/schema/code_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ impl CodeSchema {
let entry: DirEntry = entry.unwrap();

if entry.path().is_file() {
if entry.path().to_str().unwrap().contains("mod.rs") {
let path = entry.path().to_str().unwrap();

if path.contains("mod.rs") || !path.ends_with(".rs") {
continue;
}

Expand Down

0 comments on commit a85f814

Please sign in to comment.