forked from 1b-agent/opencadstudio-upstream
ocs_doc_api: move doc_api_convert.rs into the crate (src/convert.rs)
Move the 503-line host-independent entity-conversion module (acadrust EntityType <-> DTO conversions, transform_entity_geometry, entity_to_profile_curves, bulge_arc_segment, entity_bounds, entity_kind_name, points_aabb) from src/app/doc_api_convert.rs into crates/ocs_doc_api/src/convert.rs (host feature). The host file is now a thin re-export (pub use ocs_doc_api::convert::*) so all existing crate::app::doc_api_convert::* paths keep working unchanged. Zero coupling risk (the module only touches acadrust + crate DTOs). 623 host lib + 8 crate + 3 consistency green.
This commit is contained in:
1 parent
d1b8fc93f5
commit
d746d635fb
3 files changed
+522
-503
No files matched your search
@@ -21,6 +21,8 @@ pub mod backend;
|
||||
pub mod executor;
|
||||
#[cfg(feature = "host")]
|
||||
pub mod geom;
|
||||
#[cfg(feature = "host")]
|
||||
pub mod convert;
|
||||
|
||||
pub mod envelope;
|
||||
pub mod facade;
|
||||
@@ -52,6 +54,12 @@ pub use facade::{
|
||||
};
|
||||
pub use ops::{BoolOp, Curve2Spec, EntitySpec, Operation, PlacementSpec, SolidPrimitive};
|
||||
pub use query::{Aabb, EntityView, Query, QueryResult};
|
||||
|
||||
#[cfg(feature = "host")]
|
||||
pub use convert::{
|
||||
bulge_arc_segment, curve_spec_to_entity, entity_bounds, entity_kind_name,
|
||||
entity_to_profile_curves, transform_entity_geometry,
|
||||
};
|
||||
pub use transport::Transport;
|
||||
|
||||
/// The crate's own wire-envelope protocol version (`DocApiEnvelope::version`).
|
||||
|
||||
Reference in new issue
Block a user