Skip to content

Commit

Permalink
fix: cargo publish errors with reference to docs/ folder (#331)
Browse files Browse the repository at this point in the history
Co-authored-by: dj8yf0μl <[email protected]>
  • Loading branch information
dj8yfo and dj8yf0μl authored Jan 13, 2025
1 parent f1abd00 commit fe78005
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ fn test_simple_struct() {
Following pages are highlighted here just to give reader a chance at learning that
they exist.

- [Derive Macro `BorshSerialize`](./docs/rustdoc_include/borsh_serialize.md)
- [Derive Macro `BorshDeserialize`](./docs/rustdoc_include/borsh_deserialize.md)
- [Derive Macro `BorshSchema`](./docs/rustdoc_include/borsh_schema.md)
- [Derive Macro `BorshSerialize`](./borsh/docs/rustdoc_include/borsh_serialize.md)
- [Derive Macro `BorshDeserialize`](./borsh/docs/rustdoc_include/borsh_deserialize.md)
- [Derive Macro `BorshSchema`](./borsh/docs/rustdoc_include/borsh_schema.md)

## Advanced examples

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions borsh/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#![cfg_attr(not(feature = "std"), no_std)]
#![doc = include_str!("../../docs/rustdoc_include/borsh_crate_top_level.md")]
#![doc = include_str!("../docs/rustdoc_include/borsh_crate_top_level.md")]

#[cfg(not(feature = "std"))]
extern crate alloc;

#[doc = include_str!("../../docs/rustdoc_include/borsh_schema.md")]
#[doc = include_str!("../docs/rustdoc_include/borsh_schema.md")]
#[cfg(feature = "unstable__schema")]
pub use borsh_derive::BorshSchema;

#[doc = include_str!("../../docs/rustdoc_include/borsh_deserialize.md")]
#[doc = include_str!("../docs/rustdoc_include/borsh_deserialize.md")]
#[cfg(feature = "derive")]
pub use borsh_derive::BorshDeserialize;

#[doc = include_str!("../../docs/rustdoc_include/borsh_serialize.md")]
#[doc = include_str!("../docs/rustdoc_include/borsh_serialize.md")]
#[cfg(feature = "derive")]
pub use borsh_derive::BorshSerialize;

Expand Down

0 comments on commit fe78005

Please sign in to comment.