Skip to content
Snippets Groups Projects
Commit 0468f121 authored by Éloïs's avatar Éloïs
Browse files

Merge branch 'gva-only-x86-64' into 'dev'

deps: include gva module in x86_64 arch only

See merge request nodes/typescript/duniter!1398
parents 251bb84a 2fb178d9
No related branches found
No related tags found
1 merge request!1398deps: include gva module in x86_64 arch only
......@@ -19,7 +19,6 @@ ctrlc = "3.1.6"
daemonize-me = "0.3.1"
dirs = "3.0.1"
duniter-core = { git = "https://git.duniter.org/nodes/rust/duniter-core", features = ["bc-writer"] }
duniter-gva-conf = { git = "https://git.duniter.org/nodes/rust/modules/duniter-gva", optional = true }
log = "0.4.11"
logwatcher = "0.1.1"
nix = "0.17.0"
......@@ -27,14 +26,12 @@ read_input = "0.8.4"
serde_json = "1.0.53"
structopt = "0.3.18"
[target.'cfg(target_arch = "x86_64")'.dependencies]
duniter-gva-conf = { git = "https://git.duniter.org/nodes/rust/modules/duniter-gva" }
[dev-dependencies]
rusty-hook = "0.11.2"
[features]
default = ["gva"]
gva = ["duniter-gva-conf"]
[workspace]
members = [
"neon/native",
......
......@@ -82,7 +82,7 @@ pub(crate) fn gen_duniter_ts_args(
gen_start_args(start_args, &mut duniter_ts_args);
gen_webstart_args(webstart_args, &mut duniter_ts_args);
}
#[cfg(feature = "gva")]
#[cfg(target_arch = "x86_64")]
DuniterCommand::Gva(_) => unreachable!(),
DuniterCommand::Start(ref start_args) => {
duniter_ts_args.push("direct_start".to_owned());
......
......@@ -32,7 +32,7 @@ mod sync;
use anyhow::{anyhow, Result};
use daemonize_me::Daemon;
#[cfg(feature = "gva")]
#[cfg(target_arch = "x86_64")]
use duniter_gva_conf::GvaCommand;
use logwatcher::{LogWatcher, LogWatcherAction};
use nix::{errno::Errno, sys::signal::Signal, unistd::Pid, Error};
......@@ -82,7 +82,7 @@ enum DuniterCommand {
after_help("Some advanced options are hidden for readability.")
)]
Config(Box<config::DuniterCoreConfigArgs>),
#[cfg(feature = "gva")]
#[cfg(target_arch = "x86_64")]
#[structopt(display_order(1))]
Gva(GvaCommand),
/// Launch the configuration wizard.
......@@ -219,7 +219,7 @@ fn main() -> Result<()> {
let log_level_filter = get_log_level(args.log)?;
let profile_path = get_profile_path(args.profile.as_deref())?;
#[cfg(feature = "gva")]
#[cfg(target_arch = "x86_64")]
if let DuniterCommand::Gva(gva_command) = args.command {
return gva_command.command(profile_path);
}
......
......@@ -9,17 +9,14 @@ edition = "2018"
anyhow = "1.0.34"
cfg-if = "1.0.0"
duniter-core = { git = "https://git.duniter.org/nodes/rust/duniter-core", features = ["bc-writer"] }
duniter-gva = { git = "https://git.duniter.org/nodes/rust/modules/duniter-gva", optional = true }
fast-threadpool = "0.2.3"
flume = "0.10.0"
log = "0.4.11"
paste = "1.0.2"
resiter = "0.4.0"
[features]
default = ["gva"]
gva = ["duniter-gva"]
[target.'cfg(target_arch = "x86_64")'.dependencies]
duniter-gva = { git = "https://git.duniter.org/nodes/rust/modules/duniter-gva" }
[dev-dependencies]
duniter-core = { git = "https://git.duniter.org/nodes/rust/duniter-core", features = ["bc-writer", "mem"] }
......@@ -30,7 +30,7 @@ use duniter_core::dbs::databases::{bc_v2::BcV2DbReadable, network_v1::NetworkV1D
pub use duniter_core::dbs::{
kv_typed::prelude::KvResult, smallvec, DunpHeadDbV1, DunpNodeIdV1Db, PeerCardDbV1,
};
#[cfg(feature = "gva")]
#[cfg(target_arch = "x86_64")]
pub use duniter_gva::GvaModule;
use anyhow::Context;
......@@ -61,7 +61,7 @@ use duniter_core::conf as duniter_conf;
use duniter_core::global as duniter_global;
use duniter_core::mempools as duniter_mempools;
cfg_if::cfg_if! {
if #[cfg(feature = "gva")] {
if #[cfg(target_arch = "x86_64")] {
use duniter_core::module::DuniterModule;
plug_duniter_modules!([GvaModule], TxsHistoryForBma);
} else {
......
......@@ -9,7 +9,7 @@ edition = "2018"
anyhow = "1.0.34"
chrono = "0.4"
duniter-core = { git = "https://git.duniter.org/nodes/rust/duniter-core", features = ["bc-writer"] }
duniter-server = { path = "../../duniter-server", features = ["gva"] }
duniter-server = { path = "../../duniter-server" }
fast-threadpool = "0.2.3"
flume = "0.10.0"
log = "0.4.11"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment