feat(xatu): scaffold project
This commit is contained in:
7
Cargo.lock
generated
7
Cargo.lock
generated
@@ -251,6 +251,13 @@ dependencies = [
|
||||
"windows-link",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "xatu"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"clap",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "zmij"
|
||||
version = "1.0.23"
|
||||
|
||||
@@ -3,6 +3,7 @@ members = [
|
||||
"src/ariadne",
|
||||
"src/machoke",
|
||||
"src/monorepo",
|
||||
"src/xatu",
|
||||
]
|
||||
resolver = "3"
|
||||
|
||||
|
||||
17
src/xatu/BUILD
Normal file
17
src/xatu/BUILD
Normal file
@@ -0,0 +1,17 @@
|
||||
load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library")
|
||||
|
||||
rust_library(
|
||||
name = "xatu_lib",
|
||||
crate_name = "xatu",
|
||||
srcs = ["xatu.rs"],
|
||||
)
|
||||
|
||||
rust_binary(
|
||||
name = "xatu",
|
||||
crate_name = "xatu_cli",
|
||||
srcs = ["xatu_main.rs"],
|
||||
deps = [
|
||||
":xatu_lib",
|
||||
"//third_party/crates:clap",
|
||||
],
|
||||
)
|
||||
14
src/xatu/Cargo.toml
Normal file
14
src/xatu/Cargo.toml
Normal file
@@ -0,0 +1,14 @@
|
||||
[package]
|
||||
name = "xatu"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[lib]
|
||||
path = "xatu.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "xatu"
|
||||
path = "xatu_main.rs"
|
||||
|
||||
[dependencies]
|
||||
clap = { workspace = true, features = ["derive"] }
|
||||
8
src/xatu/xatu.rs
Normal file
8
src/xatu/xatu.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
pub fn run() -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub type Result<T> = std::result::Result<T, Error>;
|
||||
|
||||
#[derive(Debug, PartialEq, Eq)]
|
||||
pub enum Error {}
|
||||
9
src/xatu/xatu_main.rs
Normal file
9
src/xatu/xatu_main.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
use clap::Parser;
|
||||
|
||||
#[derive(Debug, Parser)]
|
||||
struct Args {}
|
||||
|
||||
fn main() -> xatu::Result<()> {
|
||||
let Args {} = Args::parse();
|
||||
xatu::run()
|
||||
}
|
||||
Reference in New Issue
Block a user