Make sure the langref doc can be opened if the package is on crates.io

One need to make a symlink because the files need to be in the package
This commit is contained in:
Olivier Goffart 2020-08-25 13:53:24 +02:00
parent 66dce1a1bc
commit 304b0e7b0e
3 changed files with 4 additions and 2 deletions

1
api/sixtyfps-rs/docs Symbolic link
View file

@ -0,0 +1 @@
../../docs/

View file

@ -194,8 +194,9 @@ pub struct VersionCheck_0_0_1;
#[cfg(doctest)]
mod compile_fail_tests;
#[cfg(all(doc, nightly))]
pub mod langref {
#![cfg_attr(nightly, doc(include = "../../docs/langref.md"))]
#![doc(include = "docs/langref.md")]
#![doc = ""]
}

View file

@ -188,7 +188,7 @@ where
}
}
/// This trait needs to be implemented if you use the #[pin_drop] attribute. It enables
/// This trait needs to be implemented if you use the `#[pin_drop]` attribute. It enables
/// you to implement Drop for your type safely.
pub trait PinnedDrop {
/// This is the equivalent to the regular Drop trait with the difference that self