mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 22:01:13 +00:00
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:
parent
66dce1a1bc
commit
304b0e7b0e
3 changed files with 4 additions and 2 deletions
1
api/sixtyfps-rs/docs
Symbolic link
1
api/sixtyfps-rs/docs
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../docs/
|
|
@ -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 = ""]
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue