Revision faf83b3a79b050cb8eecf865a9377c34ebd1cf47 authored by Marge Bot on 02 February 2024, 16:08:48 UTC, committed by Marge Bot on 02 February 2024, 16:08:48 UTC
Co-authored-by: Killian Delarue <killian.delarue@nomadic-labs.com> Approved-by: Arvid Jakobsson <arvid.jakobsson@nomadic-labs.com> Approved-by: Nic Volanschi <nic.volanschi@nomadic-labs.com> See merge request https://gitlab.com/tezos/tezos/-/merge_requests/11768
Makefile
# SPDX-FileCopyrightText: 2023 Nomadic Labs <contact@nomadic-labs.com>
# SPDX-FileCopyrightText: 2023 TriliTech <contact@trili.tech>
#
# SPDX-License-Identifier: MIT
NATIVE_TARGET ?=
ifneq ($(NATIVE_TARGET),)
NATIVE_OPT := --target "$(NATIVE_TARGET)"
endif
.PHONY: all
all: build test check
.PHONY: tx_kernel
tx_kernel:
@cargo build --target wasm32-unknown-unknown --release -p tx_kernel --features dal
@mv target/wasm32-unknown-unknown/release/tx_kernel.wasm target/wasm32-unknown-unknown/release/tx_kernel_dal.wasm
@cargo build --target wasm32-unknown-unknown --release -p tx_kernel
.PHONY: tx-demo-collector
tx-demo-collector:
@cargo build $(NATIVE_OPT) --release -p tx-demo-collector
.PHONY: build
build: tx_kernel tx-demo-collector
.PHONY: build-deps
build-deps:
@rustup target add wasm32-unknown-unknown $(NATIVE_TARGET)
.PHONY: build-dev-deps
build-dev-deps: build-deps
@rustup component add rustfmt clippy
.PHONY: test
test:
@cargo test --features testing
.PHONY: check
check:
@cargo clippy --features testing --all-targets -- --deny warnings
.PHONY: clean
clean:
@cargo clean
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...