sass-rs 0.2.2

Higher level binding for the Sass library
Documentation
1
2
3
4
5
6
7
use libc::c_char;
use std::ffi::CStr;


pub fn to_string(c_buf: *const c_char) -> String {
    unsafe { CStr::from_ptr(c_buf) }.to_string_lossy().into_owned()
}