fix: exlude rln-cli, adjust pmtree-ft feature flags to avoid feature config when build --no-default-features --features optimalmerkletree | fullmerkletree

This commit is contained in:
vinhtc27
2025-09-14 16:16:59 +07:00
parent 0b00c639a0
commit fe566b3314
4 changed files with 7 additions and 5 deletions

View File

@@ -34,7 +34,7 @@ jobs:
run: make installdeps
- name: Cross build
run: |
cross build --release --target ${{ matrix.target }} --no-default-features --features ${{ matrix.feature }} --workspace --exclude rln-cli
cross build --release --target ${{ matrix.target }} --no-default-features --features ${{ matrix.feature }} --workspace
mkdir release
cp target/${{ matrix.target }}/release/librln* release/
tar -czvf ${{ matrix.target }}-${{ matrix.feature }}-rln.tar.gz release/
@@ -74,7 +74,7 @@ jobs:
run: make installdeps
- name: Cross build
run: |
cross build --release --target ${{ matrix.target }} --no-default-features --features ${{ matrix.feature }} --workspace --exclude rln-cli
cross build --release --target ${{ matrix.target }} --no-default-features --features ${{ matrix.feature }} --workspace
mkdir release
cp target/${{ matrix.target }}/release/librln* release/
tar -czvf ${{ matrix.target }}-${{ matrix.feature }}-rln.tar.gz release/

View File

@@ -1,6 +1,6 @@
[workspace]
members = ["rln", "rln-cli", "utils"]
exclude = ["rln-wasm", "rln-wasm-utils"]
members = ["rln", "utils"]
exclude = ["rln-cli", "rln-wasm", "rln-wasm-utils"]
resolver = "2"
# Compilation profile for any non-workspace member.

View File

@@ -1,3 +1,5 @@
#![cfg(feature = "pmtree-ft")]
use serde_json::Value;
use std::fmt::Debug;
use std::path::PathBuf;

View File

@@ -73,7 +73,7 @@ impl<R: Read> TreeConfigInput for R {
}
}
#[cfg(not(feature = "stateless"))]
#[cfg(feature = "pmtree-ft")]
impl TreeConfigInput for <PoseidonTree as ZerokitMerkleTree>::Config {
fn into_tree_config(self) -> Result<<PoseidonTree as ZerokitMerkleTree>::Config, RLNError> {
Ok(self)