rsntp 4.1.0

An RFC 5905 compliant Simple Network Time Protocol (SNTP) client library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* based on
   https://discourse.nixos.org/t/how-can-i-set-up-my-rust-programming-environment/4501/9
*/
let
  rust_overlay = import (builtins.fetchTarball
    "https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
  pkgs = import <nixpkgs> { overlays = [ rust_overlay ]; };
  rustVersion = "latest";
  rust = pkgs.rust-bin.stable.${rustVersion}.default.override {
    extensions = [ "rust-src" "rust-analyzer" ];
  };
in pkgs.mkShell {
  buildInputs = [ rust ];
  RUST_BACKTRACE = 1;
}