stringer

Crates.iostringer
lib.rsstringer
version0.1.6
sourcesrc
created_at2016-05-29 04:00:37.830912
updated_at2016-06-10 04:23:49.121746
descriptionAn easy way to turn an Unsafe *const c_char into a Rust String type and return a pointer.
homepagehttps://github.com/selfup/stringer
repositoryhttps://github.com/selfup/stringer
max_upload_size
id5219
size845
Regis Boudinot (selfup)

documentation

https://github.com/selfup/stringer/blob/master/README.md

README

Stringer

An easy way to turn an unsafe *const c_char into a Rust String type and return a pointer for FFI.

Functions

turn_into_pointer

turn_into_pointer(st: String)  -> CString

Takes a Rust String type and returns a CString.

make_string

make_string(s1: *const c_char) -> String

Takes a *const c_char and returns a Rust String type.

Example on how to load this into your project:

Cargo.toml

[dependencies]
stringer = "*"

In the file you need the functions

extern crate stringer;
use stringer::*;
Commit count: 25

cargo fmt