Skip to content

chhetripradeep/rust-python-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Extending Python with Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published