-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#![allow(internal_features)] | ||
#![feature(core_intrinsics)] | ||
mod cosine_similarity; | ||
mod element_wise_operations; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Nix shell for building the python wheels ready for publication | ||
{ pkgs ? import <nixpkgs> {} }: | ||
|
||
let | ||
rustupToolchain = "nightly-2024-06-13"; | ||
in | ||
pkgs.mkShell { | ||
buildInputs = with pkgs; [ | ||
python311 | ||
|
||
rustup | ||
maturin | ||
|
||
stdenv | ||
pkg-config | ||
openssl | ||
which | ||
gcc | ||
binutils | ||
|
||
# All the C libraries that a manylinux_1 wheel might depend on: | ||
ncurses | ||
xorg.libX11 | ||
xorg.libXext | ||
xorg.libXrender | ||
xorg.libICE | ||
xorg.libSM | ||
glib | ||
]; | ||
|
||
RUST_BACKTRACE = 1; | ||
# use nightly bcz all the features we need are in nightly | ||
RUSTUP_TOOLCHAIN = rustupToolchain; | ||
# make everything self-contained to this folder | ||
CARGO_HOME = toString ./.cargo_home; | ||
RUSTUP_HOME = toString ./.rustup; | ||
|
||
CXX = "zig c++ -target x86_64-linux-gnu.2.16"; | ||
CC = "zig cc -target x86_64-linux-gnu.2.16"; | ||
} |