Skip to content

Commit

Permalink
docs: link README to top README
Browse files Browse the repository at this point in the history
- try to fix the error "file not found" during trial to release (but ok with `cargo doc`)

Signed-off-by: David Bernard <[email protected]>
  • Loading branch information
davidB committed Sep 1, 2024
1 parent 9a67c86 commit 72b5f37
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The SDK can be used to create CDEvents and send them as CloudEvents, as well as
Import the modules in your code

```toml
cdevents = "0.1.0"
cdevents-sdk = "0.1.0"
```

To send a CDEvent as CloudEvent:
Expand Down
1 change: 1 addition & 0 deletions cdevents-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ publish = true
repository.workspace = true
rust-version.workspace = true
description = "A Rust SDK for CDEvents"
readme = "README.md"

[dependencies]
cloudevents-sdk = { version = "0.7", optional = true, default-features = false }
Expand Down
1 change: 1 addition & 0 deletions cdevents-sdk/README.md
2 changes: 1 addition & 1 deletion cdevents-sdk/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![doc = include_str!("../../README.md")]
#![doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/README.md"))]
//#![warn(missing_docs)]
// TODO remove unwrap(), expect(...)
// TODO reduce clone()
Expand Down

0 comments on commit 72b5f37

Please sign in to comment.