@@ -26,36 +26,36 @@ use crate::api::{
2626} ;
2727use crate :: { cache, errors, InvocationArg , JavaClass } ;
2828
29- pub unsafe fn to_rust_string ( pointer : * const c_char ) -> errors:: Result < String > {
29+ pub ( crate ) unsafe fn to_rust_string ( pointer : * const c_char ) -> errors:: Result < String > {
3030 let slice = CStr :: from_ptr ( pointer) . to_bytes ( ) ;
3131 Ok ( from_java_cesu8 ( slice) ?. to_string ( ) )
3232}
3333
34- pub fn to_c_string ( string : & str ) -> * mut c_char {
34+ pub ( crate ) fn to_c_string ( string : & str ) -> * mut c_char {
3535 let cs = CString :: new ( string. as_bytes ( ) ) . unwrap ( ) ;
3636 cs. into_raw ( )
3737}
3838
39- pub fn to_c_string_struct ( string : & str ) -> CString {
39+ pub ( crate ) fn to_c_string_struct ( string : & str ) -> CString {
4040 let enc = to_java_cesu8 ( string) . into_owned ( ) ;
4141 unsafe { CString :: from_vec_unchecked ( enc) }
4242}
4343
44- pub unsafe fn drop_c_string ( ptr : * mut c_char ) {
44+ pub ( crate ) unsafe fn drop_c_string ( ptr : * mut c_char ) {
4545 let _ = CString :: from_raw ( ptr) ;
4646}
4747
4848#[ cfg( not( target_os = "windows" ) ) ]
49- pub fn classpath_sep ( ) -> & ' static str {
49+ pub ( crate ) fn classpath_sep ( ) -> & ' static str {
5050 ":"
5151}
5252
5353#[ cfg( target_os = "windows" ) ]
54- pub fn classpath_sep ( ) -> & ' static str {
54+ pub ( crate ) fn classpath_sep ( ) -> & ' static str {
5555 ";"
5656}
5757
58- pub fn java_library_path ( ) -> errors:: Result < String > {
58+ pub ( crate ) fn java_library_path ( ) -> errors:: Result < String > {
5959 let default = format ! ( "-Djava.library.path={}" , deps_dir( ) ?) ;
6060 if cfg ! ( windows) {
6161 Ok ( default)
0 commit comments