Begin wrapping the component compiler

This commit is contained in:
Simon Hausmann 2022-12-13 20:44:13 +01:00 committed by Simon Hausmann
parent a2054e7ebd
commit 73024beb98
9 changed files with 646 additions and 0 deletions

View file

@ -1,9 +1,16 @@
// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
mod interpreter;
use interpreter::{ComponentCompiler, PyDiagnostic, PyDiagnosticLevel, PyValueType};
use pyo3::prelude::*;
#[pymodule]
fn slint(_py: Python<'_>, m: &PyModule) -> PyResult<()> {
m.add_class::<ComponentCompiler>()?;
m.add_class::<PyValueType>()?;
m.add_class::<PyDiagnosticLevel>()?;
m.add_class::<PyDiagnostic>()?;
Ok(())
}