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"