Cargo Features

[dependencies]
ggca = { version = "0.4.1", default-features = false, features = ["extension-module"] }
default = extension-module

This prevent errors with get/set macro Read this https://github.com/PyO3/pyo3/issues/1084 Solved using this: https://pyo3.rs/master/faq.html#i-cant-run-cargo-test-im-having-linker-issues-like-symbol-not-found-or-undefined-reference-to-_pyexc_systemerror It will be fixed once https://github.com/PyO3/pyo3/pull/1123 is merged

extension-module default

Enables extension-module of pyo3 ^0.15.1

pyo3:

Use this feature when building an extension module.
It tells the linker to keep the python symbols unresolved,
so that the module can also be used with statically linked python interpreters.