cargo init

This commit is contained in:
2026-08-31 21:01:50 +09:00
parent 5f73e91a5b
commit ba4ccf1e67
7 changed files with 110 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
{
description = "Worldspace Interface Protocol implementation in Rust";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{ nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
packages = with pkgs; [
cargo
clippy
rust-analyzer
rustc
rustfmt
];
RUST_SRC_PATH = "${pkgs.rustPlatform.rustLibSrc}";
};
}
);
}