/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
//! # Uniffi support for webidl syntax, typically from a .udl file, as described by weedle. //! //! This library is dedicated to parsing a string in a webidl syntax, as described by //! weedle and with our own custom take on the attributes etc, pushing the boundaries //! of that syntax to describe a uniffi `MetadataGroup`. //! //! The output of this module is consumed by uniffi_bindgen to generate stuff.
mod attributes; mod collectors; mod converters; mod finder; mod literal; mod resolver;
use anyhow::Result; use collectors::{InterfaceCollector, TypeCollector}; use uniffi_meta::Type;
/// The single entry-point to this module. pubfn parse_udl(udl: &str, crate_name: &str) -> Result<uniffi_meta::MetadataGroup> {
Ok(InterfaceCollector::from_webidl(udl, crate_name)?.into())
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.