Skip to content

Commit 4365015

Browse files
committed
Add structure to project
1 parent e295e00 commit 4365015

File tree

8 files changed

+268
-4
lines changed

8 files changed

+268
-4
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/target
1+
**/target

Cargo.lock

+231
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2021"
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9-
9+
clap = { version = "3.0.5", features = ["derive"] }
1010

1111
[[bin]]
1212
name = "wasmo"

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div align="center">
22
<a href="#" target="_blank">
3-
<img src="https://raw.githubusercontent.com/appcypher/gigamono-assets/main/avatar-gigamono-boxed.png" alt="Gigamono Logo" width="140" height="140"></img>
3+
<img src="https://raw.githubusercontent.com/appcypher/wasmo/master/media/wasmo.png" alt="Wasmo Logo" width="140" height="140"></img>
44
</a>
55
</div>
66

bin/cli.rs

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License.
2+
use clap::{Parser, Subcommand};
3+
4+
#[derive(Parser, Debug)]
5+
#[clap(about, version, author)]
6+
struct Args {
7+
#[clap(subcommand)]
8+
commands: Commands,
9+
}
10+
11+
#[derive(Subcommand, Debug)]
12+
enum Commands {
13+
Compile {},
14+
}
15+
116
fn main() {
2-
println!("Hello, world!");
17+
let _ = Args::parse();
318
}

projects/compiler/Cargo.lock

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

projects/compiler/Cargo.toml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[package]
2+
name = "compiler"
3+
version = "0.1.0"
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+
10+
[lib]
11+
path = "lib.rs"

projects/compiler/lib.rs

Whitespace-only changes.

0 commit comments

Comments
 (0)