Skip to content

Commit 0772027

Browse files
committed
closes #3
1 parent 171d4f6 commit 0772027

File tree

5 files changed

+104
-28
lines changed

5 files changed

+104
-28
lines changed

.envrc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
use nix
2-
3-
toolchain_path="./.cargo/rust-toolchain.toml"
4-
if rg -q "nightly" "$toolchain_path"; then
5-
export RUSTFLAGS="$RUSTFLAGS -C link-arg=-fuse-ld=mold --cfg tokio_unstable -Z threads=8 -Z track-diagnostics"
6-
fi
1+
use flake

flake.lock

Lines changed: 72 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
description = "A devShell example";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6+
rust-overlay.url = "github:oxalica/rust-overlay";
7+
flake-utils.url = "github:numtide/flake-utils";
8+
};
9+
10+
outputs = { self, nixpkgs, rust-overlay, flake-utils, ... }:
11+
flake-utils.lib.eachDefaultSystem (system:
12+
let
13+
overlays = [ (import rust-overlay) ];
14+
pkgs = import nixpkgs {
15+
inherit system overlays;
16+
};
17+
in
18+
{
19+
devShells.default = with pkgs; mkShell {
20+
buildInputs = [
21+
openssl
22+
pkg-config
23+
(rust-bin.fromRustupToolchainFile ./.cargo/rust-toolchain.toml)
24+
];
25+
};
26+
}
27+
);
28+
}
29+

shell.nix

Lines changed: 0 additions & 18 deletions
This file was deleted.

v_exchanges/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ use v_utils::utils::init_subscriber;
1515
#[tokio::main]
1616
async fn main() {
1717
color_eyre::install().unwrap();
18-
init_subscriber(Some(std::path::PathBuf::from("/home/v/.local/share/v_exchanges/.log").into())); //dbg
18+
//init_subscriber(Some(std::path::PathBuf::from("/home/v/.local/share/v_exchanges/.log").into())); //dbg
19+
init_subscriber(None);
1920

2021
tracing::debug!("Starting...");
2122
let mut client = Client::new();

0 commit comments

Comments
 (0)