Extract fj-export from fj-app

This commit is contained in:
Hanno Braun 2022-04-13 13:44:59 +02:00
parent 5f2ef72e71
commit d96b3ef29d
5 changed files with 38 additions and 4 deletions

11
Cargo.lock generated
View File

@ -698,6 +698,7 @@ dependencies = [
"clap", "clap",
"figment", "figment",
"fj", "fj",
"fj-export",
"fj-host", "fj-host",
"fj-interop", "fj-interop",
"fj-kernel", "fj-kernel",
@ -708,7 +709,6 @@ dependencies = [
"parry3d-f64", "parry3d-f64",
"serde", "serde",
"thiserror", "thiserror",
"threemf",
"tracing", "tracing",
"tracing-subscriber", "tracing-subscriber",
"wgpu", "wgpu",
@ -716,6 +716,15 @@ dependencies = [
"winit", "winit",
] ]
[[package]]
name = "fj-export"
version = "0.5.0"
dependencies = [
"fj-interop",
"fj-math",
"threemf",
]
[[package]] [[package]]
name = "fj-host" name = "fj-host"
version = "0.5.0" version = "0.5.0"

View File

@ -18,7 +18,6 @@ futures = "0.3.21"
nalgebra = "0.30.0" nalgebra = "0.30.0"
parry3d-f64 = "0.8.0" parry3d-f64 = "0.8.0"
thiserror = "1.0.30" thiserror = "1.0.30"
threemf = "0.3.0"
tracing = "0.1.33" tracing = "0.1.33"
wgpu = "0.12.0" wgpu = "0.12.0"
wgpu_glyph = "0.16.0" wgpu_glyph = "0.16.0"
@ -36,6 +35,10 @@ features = ["env", "toml"]
version = "0.5.0" version = "0.5.0"
path = "../fj" path = "../fj"
[dependencies.fj-export]
version = "0.5.0"
path = "../fj-export"
[dependencies.fj-host] [dependencies.fj-host]
version = "0.5.0" version = "0.5.0"
path = "../fj-host" path = "../fj-host"

View File

@ -1,7 +1,6 @@
mod args; mod args;
mod camera; mod camera;
mod config; mod config;
mod export;
mod graphics; mod graphics;
mod input; mod input;
mod window; mod window;
@ -10,6 +9,7 @@ use std::path::PathBuf;
use std::time::Instant; use std::time::Instant;
use anyhow::anyhow; use anyhow::anyhow;
use fj_export::export;
use fj_host::{Model, Parameters}; use fj_host::{Model, Parameters};
use fj_operations::shape_processor::ShapeProcessor; use fj_operations::shape_processor::ShapeProcessor;
use futures::executor::block_on; use futures::executor::block_on;
@ -25,7 +25,6 @@ use crate::{
args::Args, args::Args,
camera::Camera, camera::Camera,
config::Config, config::Config,
export::export,
graphics::{DrawConfig, Renderer}, graphics::{DrawConfig, Renderer},
window::Window, window::Window,
}; };

23
fj-export/Cargo.toml Normal file
View File

@ -0,0 +1,23 @@
[package]
name = "fj-export"
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"]
categories = ["encoding"]
[dependencies]
threemf = "0.3.0"
[dependencies.fj-interop]
version = "0.5.0"
path = "../fj-interop"
[dependencies.fj-math]
version = "0.5.0"
path = "../fj-math"