chore(release): prepare public source release
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
pub mod net {
|
||||
pub struct Client {
|
||||
pub id: u32,
|
||||
}
|
||||
|
||||
impl Client {
|
||||
pub fn connect(id: u32) -> Self {
|
||||
Self { id }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub enum Mode {
|
||||
Fast,
|
||||
Safe,
|
||||
}
|
||||
|
||||
pub fn run(args: &[String]) -> Result<(), String> {
|
||||
let mode = if args.is_empty() {
|
||||
Mode::Safe
|
||||
} else {
|
||||
Mode::Fast
|
||||
};
|
||||
|
||||
match mode {
|
||||
Mode::Fast => println!("fast"),
|
||||
Mode::Safe => println!("safe"),
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn helper(value: i32) -> i32 {
|
||||
value + 1
|
||||
}
|
||||
Reference in New Issue
Block a user