VScode stuff
This commit is contained in:
parent
acc3380bcd
commit
2624d8107b
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,6 +1,7 @@
|
|||
/target
|
||||
/*
|
||||
!/.vscode
|
||||
!/.gitignore
|
||||
!/.gitkeep
|
||||
!/src
|
||||
!/include
|
||||
!/Cargo*
|
||||
|
|
11
.vscode/extensions.json
vendored
Normal file
11
.vscode/extensions.json
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"recommendations": [
|
||||
"aaron-bond.better-comments",
|
||||
"usernamehw.errorlens",
|
||||
"tamasfe.even-better-toml",
|
||||
"platformio.platformio-ide",
|
||||
"1YiB.rust-bundle",
|
||||
"tamasfe.even-better-toml",
|
||||
"ms-vscode.cpptools"
|
||||
]
|
||||
}
|
5
.vscode/settings.json
vendored
Normal file
5
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"files.associations": {
|
||||
"*.s": "platformio-debug.asm"
|
||||
}
|
||||
}
|
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -146,6 +146,7 @@ dependencies = [
|
|||
"bitflags",
|
||||
"camino",
|
||||
"clap",
|
||||
"clap_derive",
|
||||
"lazy_static",
|
||||
"map-macro",
|
||||
"parse_int",
|
||||
|
|
|
@ -10,6 +10,7 @@ anyhow = "1.0.80"
|
|||
bitflags = "2.4.2"
|
||||
camino = "1.1.6"
|
||||
clap = { version = "4.5.2", features = ["derive"] }
|
||||
clap_derive = "4.5.0"
|
||||
lazy_static = "1.4.0"
|
||||
map-macro = "0.3.0"
|
||||
parse_int = "0.6.0"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
use clap::{builder::PossibleValue, Parser, ValueEnum};
|
||||
use camino::Utf8PathBuf;
|
||||
|
||||
lazy_static::lazy_static! {
|
||||
static ref DEFAULT_INCLUDE_PATHS: Vec<Utf8PathBuf> = vec![
|
||||
Utf8PathBuf::from("./"),
|
||||
|
@ -40,12 +41,15 @@ pub struct CliArgs {
|
|||
pub target: CompilationTarget,
|
||||
|
||||
/// Input code files
|
||||
#[arg(required=true, num_args=1..)]
|
||||
pub input: Vec<Utf8PathBuf>,
|
||||
|
||||
#[clap(skip)]
|
||||
pub passthrough: Vec<String>
|
||||
}
|
||||
|
||||
|
||||
|
||||
impl CliArgs {
|
||||
pub fn parse_with_passthrough() -> Self {
|
||||
let mut clap_args = Vec::new();
|
||||
|
|
Loading…
Reference in New Issue
Block a user