From cfc961e5c300f3f85a480150a23ebe9856eff94e Mon Sep 17 00:00:00 2001 From: pointer-to-bios Date: Wed, 17 Apr 2024 01:01:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=9C=A8vscode=E4=B8=AD?= =?UTF-8?q?=E5=87=AD=E7=A9=BA=E5=87=BA=E7=8E=B0=E7=9A=84=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cargo/config | 2 ++ .gitignore | 1 + .vscode/c_cpp_properties.json | 16 ---------------- .vscode/settings.json | 9 --------- Cargo.toml | 4 +--- 5 files changed, 4 insertions(+), 28 deletions(-) create mode 100644 .cargo/config delete mode 100644 .vscode/c_cpp_properties.json delete mode 100644 .vscode/settings.json diff --git a/.cargo/config b/.cargo/config new file mode 100644 index 0000000..5f4ec04 --- /dev/null +++ b/.cargo/config @@ -0,0 +1,2 @@ +[build] +target = ["x86_64-unknown-none"] diff --git a/.gitignore b/.gitignore index 903a407..c61cc2d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.vscode /test/metaverse.img *.o *.tfo diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json deleted file mode 100644 index fe4e235..0000000 --- a/.vscode/c_cpp_properties.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "configurations": [ - { - "name": "Linux", - "includePath": [ - "${workspaceFolder}/include" - ], - "defines": [], - "compilerPath": "/usr/bin/gcc", - "cStandard": "c17", - "intelliSenseMode": "linux-gcc-x64", - "configurationProvider": "ms-vscode.makefile-tools" - } - ], - "version": 4 -} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 6970732..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "C_Cpp.errorSquiggles": "disabled", - "files.associations": { - "*.s": "nasm", - "LICENCE": "plaintext", - "*.h": "c" - }, - "rust-analyzer.imports.preferNoStd" : true, -} \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 9a4c32c..a60f5ad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,9 +5,7 @@ edition = "2021" [lib] crate-type = ["staticlib"] +test = false # 此Cargo.toml仅用于rust-analyzer识别rust部分的代码 # 不应使用cargo编译 - -[target.'cfg(target_arch = "x86_64")'] -target = "x86_64-unknown-none"