mirror of
https://github.com/RoboSats/taptrade-core.git
synced 2025-07-20 09:43:30 +00:00
add nix shell
This commit is contained in:
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
@ -2,5 +2,7 @@
|
||||
"rust-analyzer.linkedProjects": [
|
||||
"taptrade-cli-demo/coordinator/Cargo.toml",
|
||||
"taptrade-cli-demo/trader/Cargo.toml",
|
||||
]
|
||||
],
|
||||
"nixEnvSelector.suggestion": true,
|
||||
"nixEnvSelector.nixFile": "${workspaceFolder}/shell.nix"
|
||||
}
|
15
shell.nix
Normal file
15
shell.nix
Normal file
@ -0,0 +1,15 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs.buildPackages; [
|
||||
pkg-config
|
||||
zlib
|
||||
openssl
|
||||
cargo
|
||||
rustc
|
||||
rustfmt
|
||||
gcc
|
||||
];
|
||||
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
||||
}
|
||||
|
||||
# For VSCode and Rust Analyzer use the Extension "Nix Environment Selector"
|
@ -4,7 +4,7 @@
|
||||
fn index() -> &'static str {
|
||||
"Hello, world!"
|
||||
}
|
||||
|
||||
j
|
||||
#[launch]
|
||||
pub fn webserver() -> Rocket<build> {
|
||||
rocket::build().mount("/", routes![index])
|
||||
|
Reference in New Issue
Block a user