Skip to content

Commit

Permalink
public_api mod
Browse files Browse the repository at this point in the history
  • Loading branch information
StuartHarris committed Sep 27, 2024
1 parent 511166c commit 0355270
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 13 deletions.
8 changes: 0 additions & 8 deletions crux_cli/src/codegen/mod.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
mod crate_wrapper;
mod graph;
mod intermediate_public_item;
mod item_processor;
mod nameable_item;
mod parser;
mod path_component;
mod public_api;
mod public_item;
mod render;
mod tokens;

use std::{
fs::File,
Expand Down
6 changes: 3 additions & 3 deletions crux_cli/src/codegen/parser.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
use anyhow::Result;
use rustdoc_types::{Crate, Id, Impl, ItemEnum, Path, Type};

use super::public_api::PublicApi;
use crate::codegen::{
use super::public_api::{
item_processor::{sorting_prefix, ItemProcessor},
nameable_item::NameableItem,
path_component::PathComponent,
public_item::PublicItem,
render::RenderingContext,
PublicApi,
};
use crate::codegen::public_api::render::RenderingContext;

pub fn parse(crate_: &Crate) -> Result<()> {
let mut item_processor = ItemProcessor::new(crate_);
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
use super::public_item::PublicItem;
mod crate_wrapper;
mod intermediate_public_item;
pub mod item_processor;
pub mod nameable_item;
pub mod path_component;
pub mod public_item;
pub mod render;
mod tokens;

use public_item::PublicItem;

/// The public API of a crate
///
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ mod test {
};
}

use crate::codegen::tokens;
use crate::codegen::public_api::tokens;

use super::*;

Expand Down
File renamed without changes.

0 comments on commit 0355270

Please sign in to comment.