-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3554a49
commit 0750735
Showing
11 changed files
with
654 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"rust-analyzer.cargo.buildScripts.enable": true | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
fn wave(limb: string, joint: number, amount: number) : "Wave a hand back and forth" { | ||
let pos = get_position(limb: limb, joint: joint); | ||
let pos = set_position(limb: limb, joint: joint, pos: pos + amount); | ||
let pos = set_position(limb: limb, joint: joint, pos: pos - amount); | ||
return pos; | ||
} | ||
|
||
fn main() : "Wave a hand back and forth a few times" { | ||
wave(limb: "right_arm", joint: 0, amount: 45deg); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
use prost_build; | ||
use std::env; | ||
use std::path::PathBuf; | ||
|
||
fn main() { | ||
let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()).join("proto"); | ||
std::fs::create_dir_all(&out_dir).unwrap(); | ||
|
||
let mut config = prost_build::Config::new(); | ||
config.out_dir(&out_dir); | ||
config.retain_enum_prefix(); | ||
config.enable_type_names(); | ||
|
||
config | ||
.compile_protos(&["src/proto/ast.proto"], &["src/proto/"]) | ||
.unwrap(); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.