You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think in practice it's only useful for targets that do not have std yet, but somehow have alloc already. My guess is that there are not many practical cases for this. Maybe for some embedded devices based on Arm or AVR?
(Answering my own question: core + alloc works on platforms that have memory, but don't have (say) filesystems, networking, thread scheduling, etc. So yes, it does open up a bunch of potential platforms that std would exclude.)
First, need a version of prost that includes danburkert/prost@fdf9fdf.
Then the obvious changes needed to make Tink
no_std
compatible would include the following (but there are bound to be others):core
+alloc
instead ofstd
, and have astd
feature for those things that definitely needstd
:core
/alloc
types:Box
=>alloc::boxed::Box
String
=>alloc::string::String
Vec
=>alloc::vec::Vec
std::sync::Arc
=>alloc::sync::Arc
std::fmt::*
=>core::fmt::*
std::collections::HashMap
=>alloc::collections::BTreeMap
std::sync::RwLock
=>spin::RwLock
std::convert::From
=>core::convert::From
TinkError
to wrap something that just implementscore::fmt::Debug
rather thanstd::error::Error
.The text was updated successfully, but these errors were encountered: