initial commit: used actix and added a GET fn

This commit is contained in:
2021-06-11 14:59:20 +05:30
commit 1239446d33
9 changed files with 2058 additions and 0 deletions

28
flake.nix Normal file
View File

@@ -0,0 +1,28 @@
{
description = "A simple filehost written in rust";
inputs = {
nixpkgs.url = github:nixos/nixpkgs/nixos-unstable;
utils.url = github:numtide/flake-utils;
rust-overlay.url = github:oxalica/rust-overlay;
};
outputs = { self, nixpkgs, utils, rust-overlay }:
utils.lib.eachDefaultSystem
(system:
let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs {
inherit system overlays;
};
in
{
devShell = with pkgs; mkShell {
buildInputs = [
rust-bin.nightly.latest.default
rust-analyzer
];
};
}
);
}