Skip to content

Commit

Permalink
fix: revert custom build.rs script (#540)
Browse files Browse the repository at this point in the history
Signed-off-by: David Dal Busco <[email protected]>
  • Loading branch information
peterpeterparker committed May 9, 2024
1 parent c9b623b commit 9c1e4a7
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 45 deletions.
42 changes: 0 additions & 42 deletions src/build.rs

This file was deleted.

1 change: 0 additions & 1 deletion src/libs/satellite/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ homepage.workspace = true
documentation = "https://docs.rs/junobuild-satellite"
readme = "README.md"
license-file = "LICENSE.md"
build = "../../build.rs"

[package.metadata.docs.rs]
targets = ["wasm32-unknown-unknown"]
Expand Down
4 changes: 3 additions & 1 deletion src/libs/satellite/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ mod satellite;
mod storage;
mod types;
mod upgrade;
mod version;

use crate::auth::types::state::AuthenticationConfig;
use crate::guards::{caller_is_admin_controller, caller_is_controller};
Expand All @@ -28,6 +29,7 @@ use crate::storage::types::interface::{
};
use crate::types::interface::{Config, RulesType};
use crate::types::list::ListResults;
use crate::version::SATELLITE_VERSION;
use ic_cdk::api::trap;
use ic_cdk_macros::{init, post_upgrade, pre_upgrade, query, update};
use junobuild_shared::types::interface::{
Expand Down Expand Up @@ -337,7 +339,7 @@ pub async fn deposit_cycles(args: DepositCyclesArgs) {
#[doc(hidden)]
#[query]
pub fn version() -> String {
env!("SATELLITE_VERSION").to_string()
SATELLITE_VERSION.to_string()
}

#[doc(hidden)]
Expand Down
1 change: 1 addition & 0 deletions src/libs/satellite/src/version.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub const SATELLITE_VERSION: &str = "0.0.17";
1 change: 0 additions & 1 deletion src/satellite/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name = "satellite"
version = "0.0.17"
edition = "2021"
publish = false
build = "../build.rs"

[lib]
crate-type = ["cdylib"]
Expand Down

0 comments on commit 9c1e4a7

Please sign in to comment.