You've already forked seamantic
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
0a585c09e5
|
|||
|
5d9f14d8b3
|
Vendored
-9
@@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"recommendations": [
|
|
||||||
"vadimcn.vscode-lldb",
|
|
||||||
"barbosshack.crates-io",
|
|
||||||
"usernamehw.errorlens",
|
|
||||||
"tamasfe.even-better-toml",
|
|
||||||
"rust-lang.rust-analyzer",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Vendored
-33
@@ -1,33 +0,0 @@
|
|||||||
{
|
|
||||||
// VSCode
|
|
||||||
"editor.detectIndentation": false,
|
|
||||||
"editor.insertSpaces": false,
|
|
||||||
"editor.tabSize": 4,
|
|
||||||
"files.exclude": {
|
|
||||||
"**/target": true,
|
|
||||||
"**/Cargo.lock": true,
|
|
||||||
},
|
|
||||||
"files.insertFinalNewline": true,
|
|
||||||
"files.trimFinalNewlines": true,
|
|
||||||
"files.trimTrailingWhitespace": true,
|
|
||||||
"files.watcherExclude": {
|
|
||||||
"**/.git/**": true,
|
|
||||||
"**/target/**": true,
|
|
||||||
},
|
|
||||||
// Extensions
|
|
||||||
"crates.listPreReleases": true,
|
|
||||||
"evenBetterToml.formatter.alignComments": true,
|
|
||||||
"evenBetterToml.formatter.alignEntries": false,
|
|
||||||
"evenBetterToml.formatter.allowedBlankLines": 1,
|
|
||||||
"evenBetterToml.formatter.arrayAutoExpand": true,
|
|
||||||
"evenBetterToml.formatter.arrayTrailingComma": true,
|
|
||||||
"evenBetterToml.formatter.columnWidth": 80,
|
|
||||||
"evenBetterToml.formatter.reorderKeys": true,
|
|
||||||
"evenBetterToml.formatter.trailingNewline": true,
|
|
||||||
"rust-analyzer.imports.granularity.enforce": true,
|
|
||||||
"rust-analyzer.imports.granularity.group": "module",
|
|
||||||
"rust-analyzer.imports.group.enable": true,
|
|
||||||
"rust-analyzer.imports.merge.glob": false,
|
|
||||||
"rust-analyzer.imports.preferNoStd": true,
|
|
||||||
"rust-analyzer.showUnlinkedFileNotification": false,
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
{
|
||||||
|
"project_name": null,
|
||||||
|
|
||||||
|
"auto_install_extensions": {
|
||||||
|
"tombi": true,
|
||||||
|
"cargo-appraiser": true,
|
||||||
|
},
|
||||||
|
|
||||||
|
"languages": {
|
||||||
|
"TOML": {
|
||||||
|
"format_on_save": "on",
|
||||||
|
"formatter": { "language_server": { "name": "tombi" } },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
"lsp": {
|
||||||
|
"rust-analyzer": {
|
||||||
|
"initialization_options": {
|
||||||
|
"imports": {
|
||||||
|
"granularity": { "enforce": true, "group": "module" },
|
||||||
|
"group": { "enable": true },
|
||||||
|
"merge": { "glob": false },
|
||||||
|
"preferNoStd": true,
|
||||||
|
},
|
||||||
|
"server": {
|
||||||
|
"extraEnv": {
|
||||||
|
"RUSTUP_TOOLCHAIN": "stable",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
Generated
+1052
-138
File diff suppressed because it is too large
Load Diff
+19
-20
@@ -1,18 +1,19 @@
|
|||||||
[workspace]
|
[workspace]
|
||||||
members = ["seamantic"]
|
|
||||||
resolver = "2"
|
resolver = "2"
|
||||||
|
members = ["seamantic"]
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
authors = []
|
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
license-file = "LICENSE.md"
|
|
||||||
rust-version = "1.85.0"
|
rust-version = "1.85.0"
|
||||||
|
license-file = "LICENSE.md"
|
||||||
|
|
||||||
[workspace.lints.rust]
|
[workspace.dependencies]
|
||||||
arithmetic_overflow = "forbid"
|
sea-orm = { version = "2.0.0-rc.27", default-features = false }
|
||||||
missing_docs = "forbid"
|
sea-orm-migration = { version = "2.0.0-rc.27", default-features = false }
|
||||||
unsafe_code = "forbid"
|
seamantic = { path = "seamantic", version = "=0.0.12", default-features = false }
|
||||||
unused_doc_comments = "forbid"
|
serde = { version = "^1", default-features = false }
|
||||||
|
serde_test = { version = "^1", default-features = false }
|
||||||
|
tokio = { version = "^1", default-features = false }
|
||||||
|
|
||||||
[workspace.lints.clippy]
|
[workspace.lints.clippy]
|
||||||
arithmetic_side_effects = "forbid"
|
arithmetic_side_effects = "forbid"
|
||||||
@@ -24,20 +25,18 @@ indexing_slicing = "forbid"
|
|||||||
integer_division = "forbid"
|
integer_division = "forbid"
|
||||||
integer_division_remainder_used = "forbid"
|
integer_division_remainder_used = "forbid"
|
||||||
transmute_undefined_repr = "forbid"
|
transmute_undefined_repr = "forbid"
|
||||||
unchecked_duration_subtraction = "forbid"
|
unchecked_time_subtraction = "forbid"
|
||||||
unwrap_used = "forbid"
|
unwrap_used = "forbid"
|
||||||
|
|
||||||
|
[workspace.lints.rust]
|
||||||
|
arithmetic_overflow = "forbid"
|
||||||
|
missing_docs = "forbid"
|
||||||
|
unsafe_code = "forbid"
|
||||||
|
unused_doc_comments = "forbid"
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
codegen-units = 1
|
|
||||||
lto = "fat"
|
|
||||||
opt-level = 3
|
opt-level = 3
|
||||||
overflow-checks = true
|
|
||||||
strip = "debuginfo"
|
strip = "debuginfo"
|
||||||
|
overflow-checks = true
|
||||||
[workspace.dependencies]
|
lto = "fat"
|
||||||
sea-orm = { version = "2.0.0-rc.17", default-features = false }
|
codegen-units = 1
|
||||||
sea-orm-migration = { version = "2.0.0-rc.17", default-features = false }
|
|
||||||
|
|
||||||
serde = { version = "^1", default-features = false }
|
|
||||||
serde_test = { version = "^1", default-features = false }
|
|
||||||
tokio = { version = "^1", default-features = false }
|
|
||||||
|
|||||||
+13
-17
@@ -1,41 +1,37 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "seamantic"
|
name = "seamantic"
|
||||||
version = "0.0.10"
|
version = "0.0.12"
|
||||||
|
edition.workspace = true
|
||||||
categories = []
|
rust-version.workspace = true
|
||||||
description = "A library to enhance SeaORM"
|
description = "A library to enhance SeaORM"
|
||||||
repository = "https://github.com/QuantumShade/seamantic"
|
repository = "https://github.com/QuantumShade/seamantic"
|
||||||
|
|
||||||
authors.workspace = true
|
|
||||||
edition.workspace = true
|
|
||||||
license-file.workspace = true
|
license-file.workspace = true
|
||||||
rust-version.workspace = true
|
categories = []
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
all-features = true
|
all-features = true
|
||||||
rustdoc-args = ["--cfg", "docsrs"]
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
||||||
[lints]
|
|
||||||
workspace = true
|
|
||||||
|
|
||||||
[[example]]
|
[[example]]
|
||||||
name = "migrations"
|
name = "migrations"
|
||||||
path = "examples/migrations/main.rs"
|
path = "examples/migrations/main.rs"
|
||||||
required-features = ["sqlite"]
|
required-features = ["sqlite"]
|
||||||
|
|
||||||
[features]
|
|
||||||
default = []
|
|
||||||
serde = ["dep:serde"]
|
|
||||||
sqlite = ["sea-orm-migration/sqlx-sqlite"]
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
sea-orm = { workspace = true }
|
sea-orm = { workspace = true }
|
||||||
sea-orm-migration = { workspace = true }
|
sea-orm-migration = { workspace = true }
|
||||||
|
|
||||||
serde = { workspace = true, features = ["derive", "std"], optional = true }
|
serde = { workspace = true, features = ["derive", "std"], optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
sea-orm = { workspace = true, features = ["entity-registry", "schema-sync"] }
|
sea-orm = { workspace = true, features = ["entity-registry", "schema-sync"] }
|
||||||
sea-orm-migration = { workspace = true, features = ["runtime-tokio-rustls"] }
|
sea-orm-migration = { workspace = true, features = ["runtime-tokio-rustls"] }
|
||||||
serde_test = { workspace = true }
|
serde_test = { workspace = true }
|
||||||
tokio = { workspace = true, features = ["rt", "macros"] }
|
tokio = { workspace = true, features = ["macros", "rt"] }
|
||||||
|
|
||||||
|
[features]
|
||||||
|
default = []
|
||||||
|
serde = ["dep:serde"]
|
||||||
|
sqlite = ["sea-orm-migration/sqlx-sqlite"]
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ use sea_orm::{ColIdx, ColumnType, DbErr, QueryResult, TryFromU64, TryGetError, T
|
|||||||
pub type SeaOrmRepr = i64;
|
pub type SeaOrmRepr = i64;
|
||||||
|
|
||||||
/// An opaque type representing a row ID
|
/// An opaque type representing a row ID
|
||||||
|
///
|
||||||
|
/// IDs should be tagged with `#[sea_orm(primary_key, auto_increment = false)]`
|
||||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
||||||
#[cfg_attr(feature = "serde", serde(transparent))]
|
#[cfg_attr(feature = "serde", serde(transparent))]
|
||||||
#[repr(transparent)]
|
#[repr(transparent)]
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ use sea_orm_migration::sea_query::{ColumnDef, IntoIden};
|
|||||||
/// #[derive(Debug, Clone, DeriveEntityModel)]
|
/// #[derive(Debug, Clone, DeriveEntityModel)]
|
||||||
/// #[sea_orm(table_name = "rowid_test")]
|
/// #[sea_orm(table_name = "rowid_test")]
|
||||||
/// pub struct Model {
|
/// pub struct Model {
|
||||||
/// #[sea_orm(column_type = "Integer", primary_key, nullable, auto_increment = false)]
|
/// #[sea_orm(primary_key, auto_increment = false)]
|
||||||
/// id: Id<Model>,
|
/// id: Id<Model>,
|
||||||
/// }
|
/// }
|
||||||
/// impl ActiveModelBehavior for ActiveModel {}
|
/// impl ActiveModelBehavior for ActiveModel {}
|
||||||
@@ -77,7 +77,7 @@ mod entity_tests {
|
|||||||
#[derive(Debug, Clone, DeriveEntityModel)]
|
#[derive(Debug, Clone, DeriveEntityModel)]
|
||||||
#[sea_orm(table_name = "rowid_test")]
|
#[sea_orm(table_name = "rowid_test")]
|
||||||
pub struct Model {
|
pub struct Model {
|
||||||
#[sea_orm(column_type = "Integer", primary_key, nullable, auto_increment = false)]
|
#[sea_orm(primary_key, auto_increment = false)]
|
||||||
id: Id<Model>,
|
id: Id<Model>,
|
||||||
}
|
}
|
||||||
impl ActiveModelBehavior for ActiveModel {}
|
impl ActiveModelBehavior for ActiveModel {}
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
toml-version = "v1.0.0"
|
||||||
|
|
||||||
|
[format.rules]
|
||||||
|
indent-style = "tab"
|
||||||
|
indent-width = 4
|
||||||
Reference in New Issue
Block a user