mirror of https://codeberg.org/topola/topola.git
board: move board to its own directory
This commit is contained in:
parent
cd1e78db6f
commit
1dc3718159
|
|
@ -14,10 +14,10 @@ use thiserror::Error;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
autorouter::{
|
autorouter::{
|
||||||
board::Board,
|
|
||||||
ratsnest::{Ratsnest, RatvertexIndex},
|
ratsnest::{Ratsnest, RatvertexIndex},
|
||||||
selection::Selection,
|
selection::Selection,
|
||||||
},
|
},
|
||||||
|
board::Board,
|
||||||
drawing::{
|
drawing::{
|
||||||
dot::FixedDotIndex,
|
dot::FixedDotIndex,
|
||||||
graph::{GetLayer, GetMaybeNet},
|
graph::{GetLayer, GetMaybeNet},
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
mod autorouter;
|
mod autorouter;
|
||||||
pub mod board;
|
|
||||||
pub mod history;
|
pub mod history;
|
||||||
pub mod invoker;
|
pub mod invoker;
|
||||||
pub mod ratsnest;
|
pub mod ratsnest;
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ use std::collections::HashSet;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
autorouter::board::Board,
|
board::Board,
|
||||||
drawing::{
|
drawing::{
|
||||||
graph::{GetLayer, MakePrimitive, PrimitiveIndex},
|
graph::{GetLayer, MakePrimitive, PrimitiveIndex},
|
||||||
rules::RulesTrait,
|
rules::RulesTrait,
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@ use rstar::AABB;
|
||||||
use spade::InsertionError;
|
use spade::InsertionError;
|
||||||
|
|
||||||
use topola::{
|
use topola::{
|
||||||
autorouter::{board::Board, ratsnest::Ratsnest, selection::Selection},
|
autorouter::{ratsnest::Ratsnest, selection::Selection},
|
||||||
|
board::Board,
|
||||||
drawing::{
|
drawing::{
|
||||||
graph::{GetLayer, MakePrimitive},
|
graph::{GetLayer, MakePrimitive},
|
||||||
primitive::MakePrimitiveShape,
|
primitive::MakePrimitiveShape,
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
mod board;
|
||||||
|
|
||||||
|
pub use board::*;
|
||||||
|
|
@ -4,7 +4,7 @@ use geo::{point, Point, Rotate, Translate};
|
||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
autorouter::board::Board,
|
board::Board,
|
||||||
drawing::{dot::FixedDotWeight, seg::FixedSegWeight, Drawing},
|
drawing::{dot::FixedDotWeight, seg::FixedSegWeight, Drawing},
|
||||||
dsn::{
|
dsn::{
|
||||||
de,
|
de,
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ pub mod graph;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
pub mod drawing;
|
pub mod drawing;
|
||||||
pub mod autorouter;
|
pub mod autorouter;
|
||||||
|
pub mod board;
|
||||||
pub mod dsn;
|
pub mod dsn;
|
||||||
pub mod geometry;
|
pub mod geometry;
|
||||||
pub mod layout;
|
pub mod layout;
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,11 @@ use std::fs::File;
|
||||||
use petgraph::{stable_graph::NodeIndex, unionfind::UnionFind, visit::NodeIndexable};
|
use petgraph::{stable_graph::NodeIndex, unionfind::UnionFind, visit::NodeIndexable};
|
||||||
use topola::{
|
use topola::{
|
||||||
autorouter::{
|
autorouter::{
|
||||||
board::Board,
|
|
||||||
history::HistoryError,
|
history::HistoryError,
|
||||||
invoker::{Invoker, InvokerError},
|
invoker::{Invoker, InvokerError},
|
||||||
Autorouter,
|
Autorouter,
|
||||||
},
|
},
|
||||||
|
board::Board,
|
||||||
drawing::{
|
drawing::{
|
||||||
graph::{GetLayer, GetMaybeNet},
|
graph::{GetLayer, GetMaybeNet},
|
||||||
rules::RulesTrait,
|
rules::RulesTrait,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue