First commit

This commit is contained in:
Nickiel12 2022-12-09 13:34:45 -08:00
parent 0662877bad
commit a12af938ba
4 changed files with 45 additions and 0 deletions

5
.gitignore vendored
View file

@ -8,3 +8,8 @@ Cargo.lock
# These are backup files generated by rustfmt
**/*.rs.bk
# Added by cargo
/target

15
Cargo.toml Normal file
View file

@ -0,0 +1,15 @@
[package]
name = "rusted_beats"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
clap = { version = "4.0.29", features = ["derive"] }
confy = "0.5.1"
dirs-next = "2.0.0"
regex = "1.6.0"
serde = { version = "1.0.143", features = ["derive"] }
serde_json = "1.0.83"
rusqlite = {version="0.28.0", features=["bundled"]}

20
shell.nix Normal file
View file

@ -0,0 +1,20 @@
{ pkgs ? import <nixpkgs> {}}:
let
rust_overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
pkgs = import <nixpkgs> { overlays = [ rust_overlay ]; };
ruststable = (pkgs.latest.rustChannels.stable.default.override {
extensions = [
"rust-src"
];
});
in
pkgs.mkShell {
buildInputs = with pkgs; [
ruststable
sqlite
sqliteman
];
RUST_BACKTRACE = 1;
}

5
src/main.rs Normal file
View file

@ -0,0 +1,5 @@
use clap::Parser;
fn main() {
println!("Hello, world!");
}