Skip to content
IFC-RS
Viewer Русский
Project Wiki en

Quick start

Requirements

Rust 1.88, Python 3, Node.js 20.11, and npm. WASM also requires the wasm32-unknown-unknown target and wasm-bindgen-cli 0.2.126.

git clone https://github.com/kventinbyratino/ifccore.git
cd ifccore
python3 -m venv .venv
.venv/bin/python scripts/import-official-schemas.py

Rust examples

cargo run -p ifccore --example open
cargo run -p ifccore --example query
cargo run -p ifccore --example edit
cargo run -p ifccore --example write

WASM

rustup target add wasm32-unknown-unknown
cargo install wasm-bindgen-cli --version 0.2.126 --locked
./scripts/build-wasm-packages.sh

Run the fresh-install Node example from a temporary project:

ROOT="$PWD"
TMP="$(mktemp -d)"
cd "$TMP"
npm init --yes
npm install "$ROOT/target/ifc-wasm-packages/node"
cp "$ROOT/examples/wasm-node-query.mjs" .
node wasm-node-query.mjs "$ROOT/fixtures/minimal.ifc"

Viewer

./scripts/build-wasm-packages.sh
cd apps/ifc-viewer
npm ci
npm run serve

For tests:

npx playwright install --with-deps chromium
npm test
npm run check
npm run test:e2e

MCP

cargo run -p ifc-mcp-server

This is a stdio server intended to be launched by an MCP client.