foundry_compilers_nim
A Nim wrapper around the Rust foundry-compilers crate
Summary
| Latest Version | 0.2.0 |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-09-05 07:27 |
Tags
Authors
- Ryan Laidlaw
Installation
nimble install foundry_compilers_nim
choosenim install foundry_compilers_nim
git clone https://github.com/RyanLaidlaw/foundry_compilers_nim
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| foundry_compilers_nim | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Dependencies
| Package | Version | Optional |
|---|---|---|
| nim >= | 2.2.10 | No |
Source
| Repository | https://github.com/RyanLaidlaw/foundry_compilers_nim |
|---|---|
| Homepage | https://github.com/RyanLaidlaw/foundry_compilers_nim |
| Registry Source | nimble_official |
README
Foundry Compilers: Nim
foundry_compilers_nim is an easy to use library that wraps Foundry's compiler crates.
Installation
Simply run nimble install foundry_compilers_nim
Usage
Pass the root of the Foundry project, and let the foundry_compilers crate figure out what to compile.
import json, os, tables
import foundry_compilers_nim
let sourceDir = currentSourcePath().parentDir()
let path = sourceDir / "test_files"
var req = initCompilerRequest(path)
req.withOptimizerRuns(250)
let artifacts = compileSolidity(req).getFields()
echo artifacts["Counter"]["bytecode"]["object"]
echo artifacts["Bank"]["abi"]
License
This project uses the MIT License