Merge pull request #454 from hannobraun/interop

Rename `fj-debug` crate to `fj-interop`
This commit is contained in:
Hanno Braun 2022-04-11 17:29:28 +02:00 committed by GitHub
commit 4afdd3f1e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
27 changed files with 139 additions and 137 deletions

20
Cargo.lock generated
View File

@ -668,8 +668,8 @@ dependencies = [
"clap",
"figment",
"fj",
"fj-debug",
"fj-host",
"fj-interop",
"fj-kernel",
"fj-math",
"fj-operations",
@ -686,13 +686,6 @@ dependencies = [
"winit",
]
[[package]]
name = "fj-debug"
version = "0.5.0"
dependencies = [
"fj-math",
]
[[package]]
name = "fj-host"
version = "0.5.0"
@ -703,6 +696,13 @@ dependencies = [
"thiserror",
]
[[package]]
name = "fj-interop"
version = "0.5.0"
dependencies = [
"fj-math",
]
[[package]]
name = "fj-kernel"
version = "0.5.0"
@ -710,7 +710,7 @@ dependencies = [
"anyhow",
"anymap",
"approx 0.5.1",
"fj-debug",
"fj-interop",
"fj-math",
"map-macro",
"nalgebra",
@ -740,7 +740,7 @@ name = "fj-operations"
version = "0.5.0"
dependencies = [
"fj",
"fj-debug",
"fj-interop",
"fj-kernel",
"fj-math",
"nalgebra",

View File

@ -3,8 +3,8 @@ resolver = "2"
members = [
"fj",
"fj-app",
"fj-debug",
"fj-host",
"fj-interop",
"fj-kernel",
"fj-math",
"fj-operations",
@ -18,8 +18,8 @@ members = [
]
default-members = [
"fj-app",
"fj-debug",
"fj-host",
"fj-interop",
"fj-kernel",
"fj-math",
"fj-operations",

View File

@ -36,14 +36,14 @@ features = ["env", "toml"]
version = "0.5.0"
path = "../fj"
[dependencies.fj-debug]
version = "0.5.0"
path = "../fj-debug"
[dependencies.fj-host]
version = "0.5.0"
path = "../fj-host"
[dependencies.fj-interop]
version = "0.5.0"
path = "../fj-interop"
[dependencies.fj-kernel]
version = "0.5.0"
path = "../fj-kernel"

View File

@ -1,5 +1,5 @@
use bytemuck::{Pod, Zeroable};
use fj_debug::DebugInfo;
use fj_interop::debug::DebugInfo;
use fj_math::Triangle;
use nalgebra::{vector, Point};

View File

@ -9,8 +9,8 @@ mod window;
use std::path::PathBuf;
use std::{collections::HashMap, time::Instant};
use fj_debug::DebugInfo;
use fj_host::Model;
use fj_interop::debug::DebugInfo;
use fj_kernel::algorithms::triangulate;
use fj_math::{Aabb, Scalar, Triangle};
use fj_operations::ToShape as _;

View File

@ -1,15 +0,0 @@
[package]
name = "fj-debug"
version = "0.5.0"
edition = "2021"
description = "The world needs another CAD program."
readme = "../README.md"
repository = "https://github.com/hannobraun/fornjot"
license = "0BSD"
keywords = ["cad", "programmatic", "code-cad"]
[dependencies.fj-math]
path = "../fj-math"
version = "0.5.0"

15
fj-interop/Cargo.toml Normal file
View File

@ -0,0 +1,15 @@
[package]
name = "fj-interop"
version = "0.5.0"
edition = "2021"
description = "The world needs another CAD program."
readme = "../README.md"
repository = "https://github.com/hannobraun/fornjot"
license = "0BSD"
keywords = ["cad", "programmatic", "code-cad"]
[dependencies.fj-math]
path = "../fj-math"
version = "0.5.0"

View File

@ -1,11 +1,8 @@
//! Debug information definitions for the Fornjot ecosystem
//!
//! This crate contains debug information that is used by other crates within
//! the Fornjot ecosystem. The types in here aren't very useful in themselves,
//! but they define an interface that other crates use to communicate between
//! each other.
#![deny(missing_docs)]
//! Defines debug information that is used by other crates within the Fornjot
//! ecosystem. The types in here aren't very useful in themselves, but they
//! define an interface that other crates use to communicate between each other.
use fj_math::{Point, Segment};

5
fj-interop/src/lib.rs Normal file
View File

@ -0,0 +1,5 @@
//! Data types for interoperation within the Fornjot ecosystem
#![deny(missing_docs)]
pub mod debug;

View File

@ -25,9 +25,9 @@ slotmap = "1.0.6"
spade = "2.0.0"
thiserror = "1.0.30"
[dependencies.fj-debug]
[dependencies.fj-interop]
version = "0.5.0"
path = "../fj-debug"
path = "../fj-interop"
[dependencies.fj-math]
version = "0.5.0"

View File

@ -1,7 +1,7 @@
mod polygon;
mod ray;
use fj_debug::DebugInfo;
use fj_interop::debug::DebugInfo;
use fj_math::{Scalar, Triangle};
use parry2d_f64::utils::point_in_triangle::{corner_direction, Orientation};
use spade::HasPosition;
@ -121,7 +121,7 @@ impl HasPosition for geometry::Point<2> {
#[cfg(test)]
mod tests {
use fj_debug::DebugInfo;
use fj_interop::debug::DebugInfo;
use fj_math::{Scalar, Triangle};
use crate::{geometry::Surface, shape::Shape, topology::Face};

View File

@ -1,4 +1,4 @@
use fj_debug::{DebugInfo, TriangleEdgeCheck};
use fj_interop::debug::{DebugInfo, TriangleEdgeCheck};
use fj_math::{Point, PolyChain, Segment};
use crate::geometry::Surface;
@ -218,7 +218,7 @@ impl Polygon {
#[cfg(test)]
mod tests {
use fj_debug::DebugInfo;
use fj_interop::debug::DebugInfo;
use fj_math::{Point, PolyChain};
use crate::geometry::Surface;

View File

@ -23,9 +23,9 @@ path = "../fj"
version = "0.5.0"
path = "../fj-math"
[dependencies.fj-debug]
[dependencies.fj-interop]
version = "0.5.0"
path = "../fj-debug"
path = "../fj-interop"
[dependencies.fj-kernel]
version = "0.5.0"

View File

@ -1,4 +1,4 @@
use fj_debug::DebugInfo;
use fj_interop::debug::DebugInfo;
use fj_kernel::{
geometry::Surface,
shape::Shape,

View File

@ -1,6 +1,6 @@
use std::collections::HashMap;
use fj_debug::DebugInfo;
use fj_interop::debug::DebugInfo;
use fj_kernel::{
shape::{Handle, Shape},
topology::{Cycle, Edge, Face, Vertex},

View File

@ -1,6 +1,6 @@
use std::collections::HashMap;
use fj_debug::DebugInfo;
use fj_interop::debug::DebugInfo;
use fj_kernel::{
shape::Shape,
topology::{Cycle, Edge, Face, Vertex},

View File

@ -13,7 +13,7 @@ mod sketch;
mod sweep;
mod transform;
use fj_debug::DebugInfo;
use fj_interop::debug::DebugInfo;
use fj_kernel::shape::Shape;
use fj_math::{Aabb, Scalar};

View File

@ -1,4 +1,4 @@
use fj_debug::DebugInfo;
use fj_interop::debug::DebugInfo;
use fj_kernel::{
geometry::Surface,
shape::Shape,

View File

@ -1,4 +1,4 @@
use fj_debug::DebugInfo;
use fj_interop::debug::DebugInfo;
use fj_kernel::{algorithms::sweep_shape, shape::Shape};
use fj_math::{Aabb, Scalar, Vector};

View File

@ -1,4 +1,4 @@
use fj_debug::DebugInfo;
use fj_interop::debug::DebugInfo;
use fj_kernel::shape::Shape;
use fj_math::{Aabb, Scalar, Transform};
use parry3d_f64::math::Isometry;