Inital commit

This commit is contained in:
Alexandre 2026-10-21 11:10:36 +02:00
commit ba61b4717e
5 changed files with 53 additions and 0 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use flake

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
# Cargo
/target
# Direnv
/.direnv

6
Cargo.toml Normal file
View File

@ -0,0 +1,6 @@
[package]
name = "mc-launcher-rs"
version = "0.1.0"
edition = "2024"
[dependencies]

38
flake.nix Normal file
View File

@ -0,0 +1,38 @@
{
description = "Rust dev flake";
inputs = {
nixpkgs.url = "nixpkgs"; # System's nixpkgs revision
utils.url = "flake-utils"; # Same as above
};
outputs = {
self, nixpkgs, utils,
}:
utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
in {
devShells.default = pkgs.mkShell {
name = "rust shell";
buildInputs = with pkgs; [
# Toolchain
rustc
cargo
rustfmt
clippy
rust-analyzer
# Common deps
pkg-config
openssl
];
# Env vars
shellHook = ''
echo Rust loaded !
'';
};
}
);
}

3
src/main.rs Normal file
View File

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}