init of rust

This commit is contained in:
Filipriec
2026-03-24 13:33:21 +01:00
commit cd768e5498
8 changed files with 99 additions and 0 deletions

27
flake.lock generated Normal file
View File

@@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1773646010,
"narHash": "sha256-iYrs97hS7p5u4lQzuNWzuALGIOdkPXvjz7bviiBjUu8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5b2c2d84341b2afb5647081c1386a80d7a8d8605",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

32
flake.nix Normal file
View File

@@ -0,0 +1,32 @@
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.${system}.default = pkgs.mkShell {
packages = with pkgs; [
# Original packages
httpie
node-red
# Rust toolchain
rustc
cargo
rust-analyzer
clippy
rustfmt
pkg-config
openssl
];
shellHook = ''
echo ">>> Environment loaded with Rust & Node-red"
cargo --version
rustc --version
'';
};
};
}

19
ro-session.json Normal file
View File

@@ -0,0 +1,19 @@
{
"__meta__": {
"about": "HTTPie session file",
"help": "https://httpie.io/docs#sessions",
"httpie": "3.2.4"
},
"auth": {
"password": null,
"type": null,
"username": null
},
"cookies": [],
"headers": [
{
"name": "Custom-Header",
"value": "orig-value"
}
]
}

1
tcp/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
target/

7
tcp/Cargo.lock generated Normal file
View File

@@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "tcp"
version = "0.1.0"

6
tcp/Cargo.toml Normal file
View File

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

3
tcp/src/main.rs Normal file
View File

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

4
x.xml Normal file
View File

@@ -0,0 +1,4 @@
<form enctype="multipart/form-data" method="post" action="http://example.com/jobs">
<input type="text" name="name" />
<input type="file" name="cv" />
</form>