Skip to content

Commit

Permalink
second pass: libneard(lib), neard(bin)
Browse files Browse the repository at this point in the history
  • Loading branch information
miraclx committed May 11, 2021
1 parent f42daf2 commit e649a2e
Show file tree
Hide file tree
Showing 57 changed files with 184 additions and 184 deletions.
118 changes: 59 additions & 59 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 17 additions & 17 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ node-runtime = { path = "./runtime/runtime" }
near-jsonrpc = { path = "./chain/jsonrpc" }
near-network = { path = "./chain/network" }

neard = { path = "./neard/lib" }
libneard = { path = "./neard/lib" }

testlib = { path = "./test-utils/testlib" }

Expand Down Expand Up @@ -97,24 +97,24 @@ opt-level = 3 # BLS library is too slow to use in debug
opt-level = 3 # bs58 library is too slow to use in debug

[features]
performance_stats = ["neard/performance_stats", "near-network/performance_stats"]
memory_stats = ["neard/memory_stats"]
c_memory_stats = ["neard/c_memory_stats"]
expensive_tests = ["neard/expensive_tests"]
performance_stats = ["libneard/performance_stats", "near-network/performance_stats"]
memory_stats = ["libneard/memory_stats"]
c_memory_stats = ["libneard/c_memory_stats"]
expensive_tests = ["libneard/expensive_tests"]
regression_tests = []
old_tests = []
adversarial = ["neard/adversarial", "near-jsonrpc/adversarial", "near-store/adversarial"]
no_cache = ["neard/no_cache"]
metric_recorder = ["neard/metric_recorder"]
delay_detector = ["neard/delay_detector"]
rosetta_rpc = ["neard/rosetta_rpc"]
nightly_protocol = ["near-primitives/nightly_protocol", "near-jsonrpc/nightly_protocol", "testlib/nightly_protocol", "neard/nightly_protocol"]
nightly_protocol_features = ["nightly_protocol", "neard/nightly_protocol_features", "protocol_feature_evm", "protocol_feature_block_header_v3", "protocol_feature_alt_bn128", "protocol_feature_add_account_versions", "protocol_feature_tx_size_limit", "protocol_feature_allow_create_account_on_delete", "testlib/nightly_protocol_features"]
protocol_feature_evm = ["neard/protocol_feature_evm", "testlib/protocol_feature_evm", "runtime-params-estimator/protocol_feature_evm"]
protocol_feature_alt_bn128 = ["neard/protocol_feature_alt_bn128", "testlib/protocol_feature_alt_bn128", "runtime-params-estimator/protocol_feature_alt_bn128"]
protocol_feature_block_header_v3 = ["near-primitives/protocol_feature_block_header_v3", "near-chain/protocol_feature_block_header_v3", "neard/protocol_feature_block_header_v3"]
protocol_feature_tx_size_limit = ["near-primitives/protocol_feature_tx_size_limit", "node-runtime/protocol_feature_tx_size_limit", "neard/protocol_feature_tx_size_limit"]
protocol_feature_allow_create_account_on_delete = ["testlib/protocol_feature_allow_create_account_on_delete", "near-primitives/protocol_feature_allow_create_account_on_delete", "node-runtime/protocol_feature_allow_create_account_on_delete", "neard/protocol_feature_allow_create_account_on_delete"]
adversarial = ["libneard/adversarial", "near-jsonrpc/adversarial", "near-store/adversarial"]
no_cache = ["libneard/no_cache"]
metric_recorder = ["libneard/metric_recorder"]
delay_detector = ["libneard/delay_detector"]
rosetta_rpc = ["libneard/rosetta_rpc"]
nightly_protocol = ["near-primitives/nightly_protocol", "near-jsonrpc/nightly_protocol", "testlib/nightly_protocol", "libneard/nightly_protocol"]
nightly_protocol_features = ["nightly_protocol", "libneard/nightly_protocol_features", "protocol_feature_evm", "protocol_feature_block_header_v3", "protocol_feature_alt_bn128", "protocol_feature_add_account_versions", "protocol_feature_tx_size_limit", "protocol_feature_allow_create_account_on_delete", "testlib/nightly_protocol_features"]
protocol_feature_evm = ["libneard/protocol_feature_evm", "testlib/protocol_feature_evm", "runtime-params-estimator/protocol_feature_evm"]
protocol_feature_alt_bn128 = ["libneard/protocol_feature_alt_bn128", "testlib/protocol_feature_alt_bn128", "runtime-params-estimator/protocol_feature_alt_bn128"]
protocol_feature_block_header_v3 = ["near-primitives/protocol_feature_block_header_v3", "near-chain/protocol_feature_block_header_v3", "libneard/protocol_feature_block_header_v3"]
protocol_feature_tx_size_limit = ["near-primitives/protocol_feature_tx_size_limit", "node-runtime/protocol_feature_tx_size_limit", "libneard/protocol_feature_tx_size_limit"]
protocol_feature_allow_create_account_on_delete = ["testlib/protocol_feature_allow_create_account_on_delete", "near-primitives/protocol_feature_allow_create_account_on_delete", "node-runtime/protocol_feature_allow_create_account_on_delete", "libneard/protocol_feature_allow_create_account_on_delete"]
protocol_feature_add_account_versions = ["near-primitives/protocol_feature_add_account_versions"]

# enable this to build neard with wasmer 1.0 runner
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ENV PORTABLE=ON
RUN --mount=type=cache,target=/tmp/target \
--mount=type=cache,target=/usr/local/cargo/git \
--mount=type=cache,target=/usr/local/cargo/registry \
cargo +"$(cat /tmp/rust-toolchain)" build -p neard-bin --release && \
cargo +"$(cat /tmp/rust-toolchain)" build -p neard --release && \
mkdir /tmp/build && \
cd /tmp/target/release && \
mv ./neard /tmp/build
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.nightly
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ENV PORTABLE=ON
RUN --mount=type=cache,target=/tmp/target \
--mount=type=cache,target=/usr/local/cargo/git \
--mount=type=cache,target=/usr/local/cargo/registry \
cargo +"$(cat /tmp/rust-toolchain)" build -p neard-bin --release --features nightly_protocol --features nightly_protocol_features && \
cargo +"$(cat /tmp/rust-toolchain)" build -p neard --release --features nightly_protocol --features nightly_protocol_features && \
mkdir /tmp/build && \
cd /tmp/target/release && \
mv ./neard /tmp/build
Expand Down
Loading

0 comments on commit e649a2e

Please sign in to comment.