@@ -8,16 +8,21 @@ mod bytes;
88pub ( crate ) mod compat;
99mod fragment;
1010mod long;
11+ mod pystrref;
1112
12- pub ( crate ) use buffer:: * ;
13- pub ( crate ) use bytes:: { PyBytes_AS_STRING , PyBytes_GET_SIZE , PyBytesObject } ;
1413pub ( crate ) use compat:: * ;
1514
16- pub ( crate ) use fragment:: { Fragment , orjson_fragmenttype_new} ;
1715pub ( crate ) use long:: pylong_is_unsigned;
1816#[ cfg( feature = "inline_int" ) ]
1917pub ( crate ) use long:: { pylong_fits_in_i32, pylong_get_inline_value, pylong_is_zero} ;
2018
19+ pub ( crate ) use {
20+ buffer:: PyMemoryView_GET_BUFFER ,
21+ bytes:: { PyBytes_AS_STRING , PyBytes_GET_SIZE , PyBytesObject } ,
22+ fragment:: { Fragment , orjson_fragmenttype_new} ,
23+ pystrref:: { PyStrRef , PyStrSubclassRef , set_str_create_fn} ,
24+ } ;
25+
2126#[ allow( unused_imports) ]
2227pub ( crate ) use pyo3_ffi:: {
2328 _PyBytes_Resize, METH_FASTCALL , METH_KEYWORDS , METH_O , Py_DECREF , Py_False , Py_INCREF , Py_None ,
@@ -53,7 +58,7 @@ pub(crate) use pyo3_ffi::PyErr_Restore;
5358#[ cfg( CPython ) ]
5459pub ( crate ) use pyo3_ffi:: { PyObject_CallMethodNoArgs , PyObject_CallMethodOneArg } ;
5560
56- #[ cfg( all ( CPython , not( target_endian = "little" ) ) ) ]
61+ #[ cfg( not( feature = "inline_str" ) ) ]
5762pub ( crate ) use pyo3_ffi:: { PyUnicode_DATA , PyUnicode_KIND } ;
5863
5964#[ cfg( Py_3_12 ) ]
0 commit comments