From 0269e8831cb9e398e1e7872c67a0f697c6eb812e Mon Sep 17 00:00:00 2001 From: Breval Ferrari Date: Wed, 14 May 2025 13:00:57 +0200 Subject: [PATCH] basic lib & cli structure, uploaded to crates.io --- Cargo.toml | 28 ++++++++++++++++++++++++++++ README.md | 4 ++-- src/cli/main.rs | 14 ++++++++++++++ src/lib.rs | 1 + 4 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 Cargo.toml create mode 100644 src/cli/main.rs create mode 100644 src/lib.rs diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..eb5770e --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,28 @@ +[package] +name = "bliplib" +version = "0.0.1" +edition = "2024" +authors = ["Breval Ferrari "] +description = "The Bizarre Language for Intermodulation Programming (BLIP)" +license = "MIT" +include = ["LICENSE", "src/*"] +repository = "https://gitdab.com/breval/blip" + +[lib] +name = "bliplib" + +[[bin]] +name = "blip" +path = "src/cli/main.rs" + +[dependencies] +anyhow = "1.0.98" +clap = { version = "4.5.38", features = ["derive"] } +fasteval = "0.2.4" +flacenc = "0.4.0" +hound = "3.5.1" +mp3lame-encoder = { version = "0.2.1", features = ["std"] } +nom = "8.0.0" +nom_locate = "5.0.0" +raw_audio = "0.0.1" +thiserror = "2.0.12" diff --git a/README.md b/README.md index 004a3cf..5483d77 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # blip -[![Crates.io](https://img.shields.io/crates/v/bng.svg)](https://crates.io/crates/bng) -[![Docs.rs](https://docs.rs/bng/badge.svg)](https://docs.rs/bng) +[![Crates.io](https://img.shields.io/crates/v/bliplib.svg)](https://crates.io/crates/bliplib) +[![Docs.rs](https://docs.rs/bliplib/badge.svg)](https://docs.rs/bliplib) [![License: MIT](https://img.shields.io/badge/License-MIT)](https://mit-license.org/) A better and more flexible [Bleeperpreter](https://github.com/p6nj/bleeperpreter) from scratch. diff --git a/src/cli/main.rs b/src/cli/main.rs new file mode 100644 index 0000000..81f3cd3 --- /dev/null +++ b/src/cli/main.rs @@ -0,0 +1,14 @@ +use clap::Parser; + +fn main() { + let name = Cli::parse().name; + println!("Hello, {name}!"); +} + +#[derive(Parser)] +#[command(version)] +#[command(author)] +#[command(about)] +struct Cli { + name: String, +} diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..ae73c3e --- /dev/null +++ b/src/lib.rs @@ -0,0 +1 @@ +pub struct Test;