thalex_rust_sdk 0.1.35

Trading client for Thalex exchange
Documentation
let
  pkgs = import <nixpkgs> { };
in
pkgs.mkShell {
  packages = with pkgs; [
    rustup
    cargo
    # node stuff
    # node stuff
    nodejs_22
    corepack_22
    typeshare
    openapi-generator-cli
    python312
    redocly
    linuxPackages.perf
    sccache
    mold
    clang

  ];
  nativeBuildInputs =
    with pkgs;
    [
      # Rust toolchain
      rustc
      cargo
      rustup
      pkg-config
    ];
  buildInputs =
    with pkgs;
    [ 
      openssl
      # Add these dependencies for bundling
    ]
    ++ lib.optionals stdenv.hostPlatform.isLinux [
      # Required for most applications
      glib-networking
    ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
      darwin.apple_sdk.frameworks.WebKit
    ];
  
  shellHook = ''
    # Rust toolchain
    rustup default nightly
    rustup component add rust-src
    # sources the shell.fish for fish users
    export SHELL=${pkgs.fish}/bin/fish
    exec ${pkgs.fish}/bin/fish -i -C 'source ./shell.fish; dev'
  '';
}