Skip to content

Commit dd9b417

Browse files
committed
adding intitial (experimental) rust support
1 parent bfb38c6 commit dd9b417

File tree

6 files changed

+575
-0
lines changed

6 files changed

+575
-0
lines changed

generator_code/targets/cargo.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "cargo",
3+
"group": "rust",
4+
"help": "generate the code for cargo",
5+
"data_override": {
6+
"literals" : {
7+
"time": {
8+
"attosecond": {
9+
"code_literal": "as_"
10+
}
11+
}
12+
}
13+
},
14+
"formatter": {
15+
"name": "rustfmt",
16+
"file_patters": [
17+
"src/lib.rs"
18+
]
19+
},
20+
"test_commands": [
21+
{
22+
"command":["cargo", "test"]
23+
}
24+
]
25+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[package]
2+
name = "unit_system"
3+
version = "{{ version }}"
4+
edition = "2021"
5+
6+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7+
8+
[dependencies]
9+
approx = "0.5.1"

target_data/rust/generic/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/target
2+
.vscode

0 commit comments

Comments
 (0)