Skip to content

Commit

Permalink
Rename trustify-api crate to trustify-graph to match actual renaming.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob McWhirter committed Mar 14, 2024
1 parent 1473406 commit c39386a
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 12 deletions.
2 changes: 1 addition & 1 deletion graph/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "trustify-api"
name = "trustify-graph"
version = "0.1.0"
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion importer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"

[dependencies]
trustify-api = { path = "../graph" }
trustify-graph = { path = "../graph" }
trustify-entity = { path = "../entity" }
trustify-migration = { path = "../migration" }
trustify-common = { path = "../common" }
Expand Down
4 changes: 2 additions & 2 deletions importer/src/csaf/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ use std::collections::HashSet;
use std::process::ExitCode;
use std::time::SystemTime;
use time::{Date, Month, UtcOffset};
use trustify_api::db::Transactional;
use trustify_api::graph::Graph;
use trustify_graph::db::Transactional;
use trustify_graph::graph::Graph;
use trustify_common::config::Database;
use url::Url;
use walker_common::{fetcher::Fetcher, utils::hex::Hex, validate::ValidationOptions};
Expand Down
2 changes: 1 addition & 1 deletion importer/src/sbom/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use sbom_walker::{
use std::process::ExitCode;
use std::time::SystemTime;
use time::{Date, Month, UtcOffset};
use trustify_api::graph::Graph;
use trustify_graph::graph::Graph;
use trustify_common::config::Database;
use url::Url;
use walker_common::{fetcher::Fetcher, validate::ValidationOptions};
Expand Down
4 changes: 2 additions & 2 deletions importer/src/sbom/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ use sbom_walker::{
};
use sha2::digest::Output;
use sha2::{Digest, Sha256};
use trustify_api::db::Transactional;
use trustify_api::graph::Graph;
use trustify_graph::db::Transactional;
use trustify_graph::graph::Graph;
use walker_common::{compression::decompress_opt, utils::hex::Hex};

pub struct ProcessVisitor {
Expand Down
1 change: 1 addition & 0 deletions ingestors/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ edition = "2021"
publish = false

[dependencies]
trustify-graph = { path = "../graph"}
serde = { version = "1.0.183", features = ["derive"] }
serde_json = "1.0.114"
chrono = { version = "0.4.35", features = ["serde"] }
Expand Down
12 changes: 11 additions & 1 deletion ingestors/src/cve/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
use trustify_graph::graph::Graph;

pub mod cve_record;
pub mod cve_record;

pub struct CveIngestor<'g> {
graph: &'g Graph,

}

impl<'g> CveIngestor<'g> {

}
2 changes: 1 addition & 1 deletion server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ version = "0.1.0"
edition = "2021"

[dependencies]
trustify-api = { path = "../graph" }
trustify-auth = { path = "../common/auth", features = ["actix"] }
trustify-graph = { path = "../graph" }
trustify-common = { path = "../common"}
trustify-infrastructure = { path = "../common/infrastructure" }

Expand Down
2 changes: 1 addition & 1 deletion server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use actix_web::web;
use std::process::ExitCode;
use std::sync::Arc;
use std::time::Duration;
use trustify_api::graph::{DbStrategy, Graph};
use trustify_graph::graph::{DbStrategy, Graph};
use trustify_auth::auth::AuthConfigArguments;
use trustify_auth::authenticator::Authenticator;
use trustify_auth::authorizer::Authorizer;
Expand Down
2 changes: 1 addition & 1 deletion server/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use actix_web::body::BoxBody;
use actix_web::{HttpResponse, ResponseError};
use std::borrow::Cow;
use std::fmt::{Debug, Display};
use trustify_api::graph;
use trustify_graph::graph;
use trustify_common::error::ErrorInformation;

pub mod importer;
Expand Down
2 changes: 1 addition & 1 deletion server/src/server/read/package.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use actix_web::{get, web, HttpResponse, Responder};
use serde::{Deserialize, Serialize};
use std::str::FromStr;
use trustify_api::db::Transactional;
use trustify_graph::db::Transactional;
use trustify_auth::authenticator::user::UserInformation;
use trustify_auth::authorizer::Authorizer;
use trustify_auth::Permission;
Expand Down

0 comments on commit c39386a

Please sign in to comment.