Inital commit
This commit is contained in:
commit
ba61b4717e
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# Cargo
|
||||
/target
|
||||
|
||||
# Direnv
|
||||
/.direnv
|
||||
6
Cargo.toml
Normal file
6
Cargo.toml
Normal file
@ -0,0 +1,6 @@
|
||||
[package]
|
||||
name = "mc-launcher-rs"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
38
flake.nix
Normal file
38
flake.nix
Normal 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
3
src/main.rs
Normal file
@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user