cargo-l1x

Crates.iocargo-l1x
lib.rscargo-l1x
version0.1.2
sourcesrc
created_at2024-04-26 13:32:07.951
updated_at2024-06-10 18:38:31.384152
descriptionL1X build tool
homepagehttps://l1x-sdk.gitbook.io
repository
max_upload_size
id1221420
size115,003
Kevin Coutinho (kevincoutinholayeronex)

documentation

README

cargo-l1x

L1X build tool

L1X Documentation

https://l1x-sdk.gitbook.io/

Installation

Install dependencies

Ubuntu 23.10

sudo apt install clang llvm-15-dev libpolly-15-dev llvm-17 cmake

Ubuntu 22.04

sudo add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-15 main' && \
(wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - ) && \
sudo apt-get update && \
sudo apt-get install -y clang-15 llvm-15-dev libpolly-15-dev cmake

sudo add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main' && \
(wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - ) && \
sudo apt-get update && \
sudo apt-get install -y llvm-17

Ubuntu 20.04

sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-15 main' && \
(wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - ) && \
sudo apt-get update && \
sudo apt-get install -y clang-15 llvm-15-dev libpolly-15-dev cmake

sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-17 main' && \
(wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - ) && \
sudo apt-get update && \
sudo apt-get install -y llvm-17

Mac

Install dependencies on Mac

Add a compiler wasm32 target

rustup target add wasm32-unknown-unknown

Install cargo-l1x

cargo install cargo-l1x --force

Usage

Create a project

cargo l1x create some_project

Create a project from a template

cargo l1x create some_project --template ft

List of available templates is here: https://github.com/L1X-Foundation/cargo-l1x-templates

Build the project

cd some_project
cargo l1x build

Clean the project

cargo clean

Help messages

cargo l1x --help
cargo l1x build --help
cargo l1x create --help
Commit count: 0

cargo fmt