Skip to content

Commit

Permalink
bundle tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
archeoss committed Oct 3, 2023
1 parent c557ca4 commit e6a7d62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ utoipa-rapidoc = { version = "0.1", features = ["axum"], optional = true }
cli = { path = "../cli" }

[features]
default = [ "swagger" ]
swagger = [ "utoipa", "utoipa-swagger-ui" , "utoipa-redoc", "utoipa-rapidoc" ]
frontend = [ ]
default = [ "swagger", "frontend-bundle" ]
swagger = [ "dep:utoipa", "dep:utoipa-swagger-ui" , "dep:utoipa-redoc", "dep:utoipa-rapidoc" ]
frontend-bundle = [ ]
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::{path::PathBuf, process::Command};

#[allow(dead_code)]
fn main() {
#[cfg(feature = "frontend")]
#[cfg(feature = "frontend-bundle")]
{
let mut dir = PathBuf::from(std::env::var("OUT_DIR").unwrap()); // OUT_DIR == <project_dir>/target/<backend_dir>/build/bob_management-<HASH>/out
dir.pop();
Expand Down

0 comments on commit e6a7d62

Please sign in to comment.