First Commit

This commit is contained in:
:NoBody: committed 2026-03-18 20:40:41 +08:00
commit 5ae6a94b13
5 files changed
+33

No files matched your search

+1
View File
@@ -0,0 +1 @@
use flake
+1
View File
@@ -0,0 +1 @@
/target
+6
View File
@@ -0,0 +1,6 @@
[package]
name = "daily_bot"
version = "0.1.0"
edition = "2024"
[dependencies]
+22
View File
@@ -0,0 +1,22 @@
{
inputs = {
naersk.url = "github:nix-community/naersk/master";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils, naersk }:
utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
naersk-lib = pkgs.callPackage naersk { };
in
{
defaultPackage = naersk-lib.buildPackage ./.;
devShell = with pkgs; mkShell {
buildInputs = [ cargo rustc rustfmt pre-commit rustPackages.clippy ];
RUST_SRC_PATH = rustPlatform.rustLibSrc;
};
}
);
}
+3
View File
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}