| Crates.io | stringmap |
| lib.rs | stringmap |
| version | 0.1.0 |
| created_at | 2016-12-16 05:48:19.447558+00 |
| updated_at | 2016-12-16 05:48:19.447558+00 |
| description | An immutable string map with pointers into frozen memory that can be shared between C, Ruby, Python and Rust. |
| homepage | https://gitlab.com/solidsnack/stringmap/ |
| repository | https://gitlab.com/solidsnack/stringmap.git |
| max_upload_size | |
| id | 7615 |
| size | 11,326 |
Provides an immutable map that can be shared between Rust, C, and languages
that bind to C in any combination. Python (using cffi) and Ruby (using
ffi) bindings are included.
Both the keys and values are returned as pointers to C strings, in memory managed by the map. Callers do not need to free said pointers.
The Ruby (bindings/stringmap.rb) and Python (bindings/stringmap.py)
provide examples of usage. In the Python case, the map has been made to
conform to the standard mapping interface.