Skip to content

Commit

Permalink
doc: include README relative to CARGO_MANIFEST_DIR
Browse files Browse the repository at this point in the history
Works around "cargo publish" error:
rust-lang/cargo#11597

Also replace README with symlink to repo's root README.
  • Loading branch information
tmfink committed Feb 25, 2024
1 parent 8df6164 commit 752d24d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions capstone-rs/README.md

This file was deleted.

1 change: 1 addition & 0 deletions capstone-rs/README.md
2 changes: 1 addition & 1 deletion capstone-rs/src/lib.rs
@@ -1,4 +1,4 @@
#![doc = include_str!("../../README.md")]
#![doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/README.md"))]
#![cfg_attr(not(feature = "std"), no_std)]
// derive Default on enums was not stable until 1.62.0
#![allow(clippy::derivable_impls)]
Expand Down

0 comments on commit 752d24d

Please sign in to comment.