# hyperledger-solang/solang

Solidity Compiler for Solana, Polkadot and Stellar

Repository: https://github.com/hyperledger-solang/solang
Canonical: https://ross.abutalabs.com/products/solang
Homepage: https://solang.readthedocs.io/
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: solidity, compiler, smart-contracts, solana, bpf, wasm, substrate, blockchain, rust, polkadot, soroban, stellar
Last push: 2026-08-25T12:05:23+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 60, longevity 100
- inputs: {"age_days": 2804, "days_push": 8, "days_rel": 57, "gap_med": 372, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1381, forks 277 (observed 2026-08-28T04:04:33.912176+00:00)

## What it is
Solang is a Solidity compiler written in Rust that uses LLVM as its backend, targeting non-EVM blockchains such as Solana, Polkadot parachains (contracts pallet), and Stellar's Soroban. It is source-compatible with Solidity 0.8 and ships as a CLI tool, a Rust crate, and a Docker container.

## Use cases
- compile solidity smart contracts for solana
- build solidity contracts for polkadot parachains
- deploy solidity to stellar soroban
- use solidity instead of rust for solana programs
- compile flipper contract for contracts-ui substrate
- cross-compile solidity to wasm and bpf

## When to choose
- you want to write smart contracts in Solidity for Solana, Polkadot, or Stellar
- you need LLVM-based optimization for contract bytecode
- you want a compiler integrated into the Solana CLI toolchain

## When to avoid
- you target EVM chains, where standard Solidity compilers like solc are the right choice
- you need full Solidity feature parity or very recent Solidity versions
- you require a battle-tested production compiler with long-term support guarantees

## Facets
- artifact type: cli-tool
- maturity: active
- function: compiler, cli, developer-tools
- domain: blockchain, compilers, developer-tools
- platform: windows, cli
- tags: solidity, solana, polkadot, stellar, soroban, llvm, smart-contracts, wasm, bpf, substrate, linux, macos, docker

## Member repositories
- hyperledger-solang/solang (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:33.912176+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:40:10.501555+00:00, confidence not recorded.
  - readme: https://github.com/hyperledger-solang/solang (fetched 2026-08-28T04:04:33.912176+00:00, sha b2ffcbdc05cc)
  - registry_crates: https://crates.io/api/v1/crates/solang (fetched 2026-08-29T11:56:32.641472+00:00, sha 4cb5b2a0a325)
- Data as of 2026-08-30T08:39:29.467469+00:00.
