Skip to content

Commit

Permalink
CARGO_PKG_README related fixes (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
strasdat authored Feb 16, 2025
1 parent 27f588d commit 1217e14
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/sophus_autodiff/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
description = "sophus - geometry for robotics and computer vision"
name = "sophus_autodiff"
readme = "../README.md"
readme = "README.md"

edition.workspace = true
include.workspace = true
Expand Down
6 changes: 5 additions & 1 deletion crates/sophus_autodiff/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
#![deny(missing_docs)]
#![no_std]
#![allow(clippy::needless_range_loop)]
#![doc = include_str!(concat!("./", std::env!("CARGO_PKG_README")))]
#![doc = include_str!(concat!("../", std::env!("CARGO_PKG_README")))]
#![cfg_attr(nightly, feature(doc_auto_cfg))]

#[doc = include_str!(concat!("../", core::env!("CARGO_PKG_README")))]
#[cfg(doctest)]
pub struct ReadmeDoctests;

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

Expand Down
2 changes: 1 addition & 1 deletion crates/sophus_geo/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
description = "sophus - geometry for robotics and computer vision"
name = "sophus_geo"
readme = "../README.md"
readme = "README.md"

edition.workspace = true
include.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions crates/sophus_geo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
#![deny(missing_docs)]
#![no_std]
#![allow(clippy::needless_range_loop)]
#![doc = include_str!(concat!("./", std::env!("CARGO_PKG_README")))]
#![doc = include_str!(concat!("../", std::env!("CARGO_PKG_README")))]
#![cfg_attr(nightly, feature(doc_auto_cfg))]

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

#[doc = include_str!(concat!("./", core::env!("CARGO_PKG_README")))]
#[doc = include_str!(concat!("../", core::env!("CARGO_PKG_README")))]
#[cfg(doctest)]
pub struct ReadmeDoctests;

Expand Down

0 comments on commit 1217e14

Please sign in to comment.