Switch from vscode to zed and add crates folder

This commit is contained in:
2026-04-18 18:55:28 -06:00
parent ec9ec6d9a5
commit 66ee797cbb
8 changed files with 59 additions and 66 deletions
-9
View File
@@ -1,9 +0,0 @@
{
"recommendations": [
"vadimcn.vscode-lldb",
"barbosshack.crates-io",
"usernamehw.errorlens",
"tamasfe.even-better-toml",
"rust-lang.rust-analyzer",
]
}
-33
View File
@@ -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,
}
+30
View File
@@ -0,0 +1,30 @@
{
"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
+1 -1
View File
@@ -1,6 +1,6 @@
# This file is automatically @generated by Cargo. # This file is automatically @generated by Cargo.
# It is not intended for manual editing. # It is not intended for manual editing.
version = 3 version = 4
[[package]] [[package]]
name = "rust" name = "rust"
+18 -17
View File
@@ -1,18 +1,16 @@
[workspace] [workspace]
members = ["rust"]
resolver = "2" resolver = "2"
members = ["crates/*"]
[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" rust = { path = "crates/rust", version = "=0.0.0", default-features = false }
missing_docs = "forbid" # crate = { version = "^0", default-features = false }
unsafe_code = "forbid"
unused_doc_comments = "forbid"
[workspace.lints.clippy] [workspace.lints.clippy]
arithmetic_side_effects = "forbid" arithmetic_side_effects = "forbid"
@@ -24,15 +22,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"
[profile.release] [workspace.lints.rust]
codegen-units = 1 arithmetic_overflow = "forbid"
lto = "fat" missing_docs = "forbid"
opt-level = 3 unsafe_code = "forbid"
overflow-checks = true unused_doc_comments = "forbid"
strip = "debuginfo"
[workspace.dependencies] [profile.release]
# crate = { version = "^0", default-features = false } opt-level = 3
strip = "debuginfo"
overflow-checks = true
lto = "fat"
codegen-units = 1
+5 -6
View File
@@ -1,18 +1,17 @@
[package] [package]
name = "rust" name = "rust"
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]
workspace = true
[dependencies] [dependencies]
# crate = { workspace = true } # crate = { workspace = true }
[lints]
workspace = true
+5
View File
@@ -0,0 +1,5 @@
toml-version = "v1.0.0"
[format.rules]
indent-style = "tab"
indent-width = 4