![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://lemmy.ml/pictrs/image/q98XK4sKtw.png)
1·
8 months agoThis was my problem, it’s enabled by default, so double check that
This was my problem, it’s enabled by default, so double check that
SOLUTION:
Here is the solution I came up with:
pub struct Configuration {}
impl Configuration {
fn get std::str::FromStr>() -> Result {
Ok(T::from_str("1234");
}
}
fn main() {
let my_conf_val = Configuration::get();
}
Ha, I did the same thing. Was getting really tired of pip issues and attempting to use pyenv and messing up a lot. Figured I’d start clean.
Didn’t realize so much depended on python and ended up needing to rebuild the whole thing.
Now I don’t mess with python on my host and only use VMs for Dev or messing around.