Skip to main content

nichlink_run_method/authoring/
authoring.rs

1//! File-backed authoring for NichLink registration faces.
2//! NichLink 注册面的文件化创作支持。
3
4use std::fs;
5use std::path::{Path, PathBuf};
6
7use crate::{NodeId, ROOT_NODE_ID, RegistrationSnapshot, Registry};
8
9use self::filesystem::{atomic_write, create_new};
10use self::parse::trait_names_from_paths;
11use self::validation::{
12    is_parent_component, normalize_kind_name, normalized_path, package_root, source_root,
13    validate_name,
14};
15
16const GENERATED_MARKER: &str = "// generated-by=NichLink";
17
18#[path = "external_graft/external_graft.rs"]
19pub mod external_graft;
20#[path = "face_manifest.rs"]
21mod face_manifest;
22#[path = "filesystem/filesystem.rs"]
23pub mod filesystem;
24#[path = "manifest/manifest.rs"]
25pub mod manifest;
26#[path = "operations/operations.rs"]
27pub mod operations;
28#[path = "parse/parse.rs"]
29pub mod parse;
30#[path = "snapshot/snapshot.rs"]
31pub mod snapshot;
32#[path = "validation/validation.rs"]
33pub mod validation;
34
35pub use self::face_manifest::*;
36/// The parsed face metadata shared by the form and the file authoring API.
37/// 表单与文件创作 API 共用的注册面元数据模型。
38pub(crate) use self::manifest::FaceManifest;