Skip to content

Commit

Permalink
Attempting to change the path of embedded AstroData when building wit…
Browse files Browse the repository at this point in the history
…h docsrs
  • Loading branch information
ChristopherRabotin committed Oct 14, 2024
1 parent 8345fe5 commit 0cb55ab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ exclude = [
".vscode",
"*.sh",
]
include = ["data/.cargokeep"]

[workspace.dependencies]
hifitime = "4.0.0-alpha"
Expand Down
7 changes: 4 additions & 3 deletions anise/src/almanac/embed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ use rust_embed::Embed;
use snafu::ResultExt;

#[derive(Embed)]
#[folder = "$CARGO_MANIFEST_DIR/../data/"]
#[include = "de440s.bsp"]
#[include = "pck11.pca"]
#[cfg_attr(not(docsrs), folder = "$CARGO_MANIFEST_DIR/../data/")]
#[cfg_attr(not(docsrs), include = "de440s.bsp")]
#[cfg_attr(not(docsrs), include = "pck11.pca")]
#[cfg_attr(docsrs, folder = "$OUTDIR")]
struct AstroData;

impl Almanac {
Expand Down
1 change: 0 additions & 1 deletion data/.cargokeep

This file was deleted.

0 comments on commit 0cb55ab

Please sign in to comment.