Skip to content

Latest commit

 

History

History
22 lines (11 loc) · 689 Bytes

README.md

File metadata and controls

22 lines (11 loc) · 689 Bytes

Blog Post: Extending Python with Rust

This repository contains the code supporting the blog post.

Read this blog post for more details.

Install

  • Python pip install pytest-benchmark

Compile

  • Rust cargo build --release compiles to libmyrustlib.so.
  • Nim nim c -d:release pyext-mynimlib/src/libmynimlib.nim compiles to libmynimlib.so.

Test

  • Nim nim c -r -d:release pyext-mynimlib/tests/test1.nim.
  • Nim Performance Test nim c -r -d:release pyext-mynimlib/benchmarks/benchmark.nim.