Blazingly fast, modular and contributor friendly Solidity compiler, written in Rust
Blazingly fast, modular and contributor friendly Solidity compiler, written in Rust
[][tg-url]
Blazingly fast, modular and contributor friendly Solidity compiler, written in Rust.
[!CAUTION] Solar is under active development and is not yet feature complete. Use it to speed up your development workflows and tooling. Please do not use it in production environments.
Solar is available through a command-line interface, or as a Rust library.
You can add Solar to your Rust project by adding the following to your Cargo.toml:
[dependencies]
solar = { version = "=0.1.8", package = "solar-compiler", default-features = false }Or through the CLI:
cargo add "solar-compiler@=0.1.8" --rename solar --no-default-featuresYou can see examples of how to use Solar as a library in the examples directory.
Pre-built binaries are available for macOS, Linux and Windows on the releases page and can be installed with the following commands:
curl -LsSf https://paradigm.xyz/solar/install.sh | shpowershell -c "irm https://paradigm.xyz/solar/install.ps1 | iex"curl -LsSf https://paradigm.xyz/solar/v0.1.8/install.sh | sh
powershell -c "irm https://paradigm.xyz/solar/v0.1.8/install.ps1 | iex"You can also use cargo binstall:
cargo binstall solar-compilercargo binstall [email protected]Or build Solar from source:
cargo install solar-compiler --lockedcargo install --git https://github.com/paradigmxyz/solar --lockedgit clone https://github.com/paradigmxyz/solar
cd solar
cargo install --locked --path crates/solarOnce installed, check out the available options:
solar -hHere's a few examples:
# Compile a single file and emit ABI to stdout.
solar Counter.sol --emit abi
# Compile a contract through standard input (`-` file).
echo "contract C {}" | solar -
solar -
Licensed under either of Apache License, Version
2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in these crates by you, as defined in the Apache-2.0 license,
shall be dual licensed as above, without any additional terms or conditions.No open issues yet, or sync has not completed.