board: move board to its own directory

This commit is contained in:
Mikolaj Wielgus 2024-06-08 13:37:27 +02:00
parent cd1e78db6f
commit 1dc3718159
9 changed files with 10 additions and 6 deletions

View File

@ -14,10 +14,10 @@ use thiserror::Error;
use crate::{
autorouter::{
board::Board,
ratsnest::{Ratsnest, RatvertexIndex},
selection::Selection,
},
board::Board,
drawing::{
dot::FixedDotIndex,
graph::{GetLayer, GetMaybeNet},

View File

@ -1,5 +1,4 @@
mod autorouter;
pub mod board;
pub mod history;
pub mod invoker;
pub mod ratsnest;

View File

@ -3,7 +3,7 @@ use std::collections::HashSet;
use serde::{Deserialize, Serialize};
use crate::{
autorouter::board::Board,
board::Board,
drawing::{
graph::{GetLayer, MakePrimitive, PrimitiveIndex},
rules::RulesTrait,

View File

@ -5,7 +5,8 @@ use rstar::AABB;
use spade::InsertionError;
use topola::{
autorouter::{board::Board, ratsnest::Ratsnest, selection::Selection},
autorouter::{ratsnest::Ratsnest, selection::Selection},
board::Board,
drawing::{
graph::{GetLayer, MakePrimitive},
primitive::MakePrimitiveShape,

3
src/board/mod.rs Normal file
View File

@ -0,0 +1,3 @@
mod board;
pub use board::*;

View File

@ -4,7 +4,7 @@ use geo::{point, Point, Rotate, Translate};
use thiserror::Error;
use crate::{
autorouter::board::Board,
board::Board,
drawing::{dot::FixedDotWeight, seg::FixedSegWeight, Drawing},
dsn::{
de,

View File

@ -4,6 +4,7 @@ pub mod graph;
#[macro_use]
pub mod drawing;
pub mod autorouter;
pub mod board;
pub mod dsn;
pub mod geometry;
pub mod layout;

View File

@ -3,11 +3,11 @@ use std::fs::File;
use petgraph::{stable_graph::NodeIndex, unionfind::UnionFind, visit::NodeIndexable};
use topola::{
autorouter::{
board::Board,
history::HistoryError,
invoker::{Invoker, InvokerError},
Autorouter,
},
board::Board,
drawing::{
graph::{GetLayer, GetMaybeNet},
rules::RulesTrait,