You've already forked architect
Switch from vscode to zed
This commit is contained in:
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,28 @@
|
|||||||
|
{
|
||||||
|
"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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+17
-16
@@ -1,18 +1,18 @@
|
|||||||
[workspace]
|
[workspace]
|
||||||
members = ["architect", "sample"]
|
|
||||||
resolver = "2"
|
resolver = "2"
|
||||||
|
members = ["architect", "sample"]
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
authors = []
|
|
||||||
edition = "2024"
|
|
||||||
license-file = "LICENSE.md"
|
license-file = "LICENSE.md"
|
||||||
|
|
||||||
|
edition = "2024"
|
||||||
rust-version = "1.85.0"
|
rust-version = "1.85.0"
|
||||||
|
|
||||||
[workspace.lints.rust]
|
[workspace.dependencies]
|
||||||
arithmetic_overflow = "forbid"
|
architect = { path = "architect", version = "=0.0.0", default-features = false }
|
||||||
missing_docs = "forbid"
|
sample = { path = "sample", version = "=0.0.0", default-features = false }
|
||||||
unsafe_code = "forbid"
|
|
||||||
unused_doc_comments = "forbid"
|
paste = { version = "^1", default-features = false }
|
||||||
|
|
||||||
[workspace.lints.clippy]
|
[workspace.lints.clippy]
|
||||||
arithmetic_side_effects = "forbid"
|
arithmetic_side_effects = "forbid"
|
||||||
@@ -27,14 +27,15 @@ transmute_undefined_repr = "forbid"
|
|||||||
unchecked_duration_subtraction = "forbid"
|
unchecked_duration_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"
|
||||||
architect = { path = "architect", version = "=0.0.0", default-features = false }
|
codegen-units = 1
|
||||||
|
|
||||||
paste = { version = "^1", default-features = false }
|
|
||||||
|
|||||||
@@ -1,22 +1,21 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "architect"
|
name = "architect"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
|
license-file.workspace = true
|
||||||
|
|
||||||
categories = ["development-tools::build-utils"]
|
|
||||||
description = "A cargo interface for build scripts"
|
description = "A cargo interface for build scripts"
|
||||||
repository = "https://github.com/QuantumShade/architect"
|
repository = "https://github.com/QuantumShade/architect"
|
||||||
|
categories = ["development-tools::build-utils"]
|
||||||
|
|
||||||
authors.workspace = true
|
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
license-file.workspace = true
|
|
||||||
rust-version.workspace = true
|
rust-version.workspace = true
|
||||||
|
|
||||||
[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
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
paste = { workspace = true }
|
paste = { workspace = true }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|||||||
@@ -12,6 +12,8 @@
|
|||||||
//! > against library `bar`, you may want to make sure that library `bar`’s
|
//! > against library `bar`, you may want to make sure that library `bar`’s
|
||||||
//! > [`cargo::rustc-link-lib`] instruction appears _after_ instructions to link
|
//! > [`cargo::rustc-link-lib`] instruction appears _after_ instructions to link
|
||||||
//! > object `foo`.
|
//! > object `foo`.
|
||||||
|
//!
|
||||||
|
//! [`cargo::rustc-link-lib`]: https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib
|
||||||
|
|
||||||
/// The `rustc-link-arg` instruction tells Cargo to pass the [`-C link-arg=FLAG`
|
/// The `rustc-link-arg` instruction tells Cargo to pass the [`-C link-arg=FLAG`
|
||||||
/// option] to the compiler, but only when building supported targets
|
/// option] to the compiler, but only when building supported targets
|
||||||
@@ -19,7 +21,6 @@
|
|||||||
/// highly platform specific. It is useful to set the shared library version or
|
/// highly platform specific. It is useful to set the shared library version or
|
||||||
/// linker script.
|
/// linker script.
|
||||||
///
|
///
|
||||||
/// [`cargo::rustc-link-lib`]: https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib
|
|
||||||
/// [`-C link-arg=FLAG` option]: https://doc.rust-lang.org/rustc/codegen-options/index.html#link-arg
|
/// [`-C link-arg=FLAG` option]: https://doc.rust-lang.org/rustc/codegen-options/index.html#link-arg
|
||||||
pub fn rustc_link_arg(flag: &str) {
|
pub fn rustc_link_arg(flag: &str) {
|
||||||
println!("cargo::rustc-link-arg={flag}");
|
println!("cargo::rustc-link-arg={flag}");
|
||||||
|
|||||||
+7
-8
@@ -1,19 +1,17 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "sample"
|
name = "sample"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
|
|
||||||
authors.workspace = true
|
|
||||||
edition.workspace = true
|
|
||||||
license-file.workspace = true
|
license-file.workspace = true
|
||||||
|
|
||||||
|
edition.workspace = true
|
||||||
rust-version.workspace = true
|
rust-version.workspace = true
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
all-features = true
|
all-features = true
|
||||||
rustdoc-args = ["--cfg", "docsrs"]
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
||||||
[lints.rust]
|
[build-dependencies]
|
||||||
arithmetic_overflow = "forbid"
|
architect = { workspace = true }
|
||||||
unsafe_code = "forbid"
|
|
||||||
|
|
||||||
[lints.clippy]
|
[lints.clippy]
|
||||||
arithmetic_side_effects = "forbid"
|
arithmetic_side_effects = "forbid"
|
||||||
@@ -28,5 +26,6 @@ transmute_undefined_repr = "forbid"
|
|||||||
unchecked_duration_subtraction = "forbid"
|
unchecked_duration_subtraction = "forbid"
|
||||||
unwrap_used = "deny"
|
unwrap_used = "deny"
|
||||||
|
|
||||||
[build-dependencies]
|
[lints.rust]
|
||||||
architect = { workspace = true }
|
arithmetic_overflow = "forbid"
|
||||||
|
unsafe_code = "forbid"
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
toml-version = "v1.0.0"
|
||||||
|
|
||||||
|
[format.rules]
|
||||||
|
indent-style = "tab"
|
||||||
|
indent-width = 4
|
||||||
Reference in New Issue
Block a user