Skip to content

Commit af1bd6e

Browse files
authored
docs: flagd update lib.rs and README to have version agnostic instructions (#29)
Signed-off-by: Eren Atas <[email protected]>
1 parent ef30103 commit af1bd6e

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

crates/flagd/README.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[Generated by cargo-readme: `cargo readme --no-title > README.md`]::
1+
[Generated by cargo-readme: `cargo readme --no-title --no-license > README.md`]::
22
# flagd Provider for OpenFeature
33

44
A Rust implementation of the OpenFeature provider for flagd, enabling dynamic
@@ -30,10 +30,9 @@ and connection management. It is designed to work seamlessly with the OpenFeatur
3030

3131
### Installation
3232
Add the dependency in your `Cargo.toml`:
33-
```toml
34-
[dependencies]
35-
open-feature-flagd = "0.0.4"
36-
open-feature = "0.2"
33+
```bash
34+
cargo add open-feature-flagd
35+
cargo add open-feature
3736
```
3837
Then integrate it into your application:
3938

crates/flagd/src/lib.rs

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! [Generated by cargo-readme: `cargo readme --no-title > README.md`]::
1+
//! [Generated by cargo-readme: `cargo readme --no-title --no-license > README.md`]::
22
//! # flagd Provider for OpenFeature
33
//!
44
//! A Rust implementation of the OpenFeature provider for flagd, enabling dynamic
@@ -30,10 +30,9 @@
3030
//!
3131
//! ## Installation
3232
//! Add the dependency in your `Cargo.toml`:
33-
//! ```toml
34-
//! [dependencies]
35-
//! open-feature-flagd = "0.0.1"
36-
//! open-feature = "0.2"
33+
//! ```bash
34+
//! cargo add open-feature-flagd
35+
//! cargo add open-feature
3736
//! ```
3837
//! Then integrate it into your application:
3938
//!

0 commit comments

Comments
 (0)