Skip to content

Commit

Permalink
Merge pull request #335 from nyx-space/gh-302-bis
Browse files Browse the repository at this point in the history
Attempt to fix docsrs build with embed ephem
  • Loading branch information
ChristopherRabotin authored Oct 14, 2024
2 parents 8345fe5 + 55fd946 commit 4c2a01f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ jobs:
- name: Test rust_embed build
run: |
# Clean up the data folder as if we were on crates.io
cp data/.cargokeep .
rm -rf data/
mkdir data && mv .cargokeep data/.cargokeep
cd anise # Build only the Rust library
cargo build --features embed_ephem
cargo build --features embed_ephem --release
Expand Down
5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resolver = "2"
members = ["anise", "anise-cli", "anise-gui", "anise-py"]

[workspace.package]
version = "0.4.4"
version = "0.4.5"
edition = "2021"
authors = ["Christopher Rabotin <[email protected]>"]
description = "ANISE provides a toolkit and files for Attitude, Navigation, Instrument, Spacecraft, and Ephemeris data. It's a modern replacement of NAIF SPICE file."
Expand All @@ -24,7 +24,6 @@ exclude = [
".vscode",
"*.sh",
]
include = ["data/.cargokeep"]

[workspace.dependencies]
hifitime = "4.0.0-alpha"
Expand All @@ -51,7 +50,7 @@ serde = "1"
serde_derive = "1"
serde_dhall = "0.12"

anise = { version = "0.4.4", path = "anise", default-features = false }
anise = { version = "0.4.5", path = "anise", default-features = false }

[profile.bench]
debug = true
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 = "$OUT_DIR")]
struct AstroData;

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

This file was deleted.

0 comments on commit 4c2a01f

Please sign in to comment.