basic lib & cli structure, uploaded to crates.io

This commit is contained in:
Breval Ferrari 2025-05-14 13:00:57 +02:00
parent 9b7a85da99
commit 0269e8831c
4 changed files with 45 additions and 2 deletions

28
Cargo.toml Normal file
View file

@ -0,0 +1,28 @@
[package]
name = "bliplib"
version = "0.0.1"
edition = "2024"
authors = ["Breval Ferrari <breval.ferrari@fish.golf>"]
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"

View file

@ -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.

14
src/cli/main.rs Normal file
View file

@ -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,
}

1
src/lib.rs Normal file
View file

@ -0,0 +1 @@
pub struct Test;