Last active
April 16, 2018 14:24
-
-
Save rayinla/11f0c3b3e500d62651520184adcba8c0 to your computer and use it in GitHub Desktop.
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
const int64 = ref.types.int64; | |
const rust = ffi.Library(path.join('C:/Sites/factorial/target/release/factorial.dll'),{ | |
factorialize: [int64, [int64]], | |
}); | |
rust.factorialize(5); // -> 120 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment