softprops / serverless-rust

⚡ 🦀 a serverless framework plugin for rustlang applications
https://www.npmjs.com/package/serverless-rust
MIT License
541 stars 81 forks source link

Respect CARGO_HOME environment variable #45

Closed ilmari closed 4 years ago

ilmari commented 4 years ago

💡 Feature description

The plugin currently hardcodes ~/.cargo as the cargo home directory to mount into the container. However, the CARGO_HOME environment variable can be used to override this, and the plugin should use that instead if set.

softprops commented 4 years ago

good call @ilmari ! If I can't get this sooner I'd be happy to take a pr