my solutions to advent of code
aoc advent-of-code

idk

aylac.top c10cc95b b8dd025a

verified
Changed files
+33
template
+1
.gitignore
···
input.txt
input.json
_build
+
target
+11
shell.nix
···
#in
pkgs.mkShellNoCC {
#inputsFrom = [ defaultPackage ];
+
#
+
env = {
+
RUST_SRC_PATH = pkgs.rustPlatform.rustLibSrc;
+
};
packages = with pkgs; [
bun
···
beam28Packages.rebar3
elixir
+
+
rustc
+
cargo
+
clippy
+
rustfmt
+
rust-analyzer
+
gcc
hyperfine
fish
+7
template/rust/Cargo.lock
···
+
# This file is automatically @generated by Cargo.
+
# It is not intended for manual editing.
+
version = 4
+
+
[[package]]
+
name = "rust"
+
version = "0.1.0"
+6
template/rust/Cargo.toml
···
+
[package]
+
name = "rust"
+
version = "0.1.0"
+
edition = "2024"
+
+
[dependencies]
+8
template/rust/src/main.rs
···
+
fn main() {
+
let input: String = match std::fs::read_to_string("../input.txt") {
+
Ok(input) => input,
+
_ => panic!("invalid input!!!"),
+
};
+
+
println!("{}", &input);
+
}