mehcode / config-rs

⚙️ Layered configuration system for Rust applications (with strong support for 12-factor applications).
Apache License 2.0
2.43k stars 206 forks source link

Error on calling method "origin" on type Value #385

Closed hkr1990 closed 1 year ago

hkr1990 commented 1 year ago

I'm trying to call this public function "origin" on a Value type and I'm getting this error "^^^^^ private field, not a method". Also, the method is public in the code but not in the API documentation.

Defined in value.rs /// Get the description of the original location of the value. pub fn origin(&self) -> Option<&str> { self.origin.as_ref().map(AsRef::as_ref) }

matthiasbeyer commented 1 year ago

The commit that added the Value::origin() method is not yet released on crates.io!

You can use the crate from the master branch if you need this function.

hkr1990 commented 1 year ago

The commit that added the Value::origin() method is not yet released on crates.io!

You can use the crate from the master branch if you need this function.

Do you know when will the commit get released?

matthiasbeyer commented 1 year ago

Sorry for not coming back to your question until now.

I will publish the next release when I think it is appropriate. I don't think it is right now. The crate is not that actively developed, there is not much progress here. Also because I fail to drive my attempt on re-thinking the crate from grounds up (see #376 ). Not because I have no idea how to do it, but simply because I cannot find the motivation to get started.

FWIW, until the next release, you can use the master branch of this crate to get that method!