iliana / rust-crowbar

Wrapper to simplify writing AWS Lambda functions in Rust (using the Python execution environment)
https://docs.rs/crowbar
Apache License 2.0
197 stars 16 forks source link

Document that building against 2.7 requires default-features = false #17

Closed iliana closed 6 years ago

iliana commented 6 years ago

Since https://github.com/ilianaw/rust-crowbar/commit/3d02dec679b8413f4c09ddcebdf8d02df3e4bd00, building for Python 2.7 requires this incantation in your Cargo.toml:

[dependencies]
crowbar = { version = "0.2", default-features = false }
cpython = { version = "0.1", default-features = false }

[features]
default = ["cpython/python27-sys"]

This is awkward but we might be able to gently push people onto Python 3.6 instead by documenting this pitfall. :)

iliana commented 6 years ago

Done in https://github.com/ilianaw/rust-crowbar/commit/a3dd6ca3b2a4716b43f414a86b91dda513d3dae8