Skip to content

Commit

Permalink
fix: Update dependencies which includes direct dependency vulnerability
Browse files Browse the repository at this point in the history
chore: remove debug statements and minor doc clarifications
  • Loading branch information
johnbcodes committed Aug 27, 2024
1 parent 22ab715 commit 96010e5
Show file tree
Hide file tree
Showing 9 changed files with 1,222 additions and 770 deletions.
605 changes: 353 additions & 252 deletions Cargo.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ lto = true
[dependencies]
anyhow = "1.0"
currency_rs = { git = "https://github.com/johnbcodes/currency_rs", branch = "feature/db-diesel2-sqlite", version = "1.1", features = ["db-diesel2-sqlite"] }
diesel = { version = "2.1", features = ["sqlite", "time"] }
diesel_migrations = "2.1"
itertools = "0.12"
libsqlite3-sys = { version = "0.28", features = ["bundled"] }
diesel = { version = "2.2", features = ["sqlite", "time"] }
diesel_migrations = "2.2"
itertools = "0.13"
libsqlite3-sys = { version = "0.30.1", features = ["bundled"] }
markup = "0.15"
mime_guess = "2"
once_cell = "1"
Expand Down
1,368 changes: 862 additions & 506 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions src/line_item_dates/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ pub(crate) async fn create(
db: Db,
form: Form<Contextual<'_, NewLineItemDateForm>>,
) -> Result<HtmxResponder> {
print!("Form:\n{form:?}");
match form.value {
Some(ref lid_form) => {
let lid_form = lid_form.clone();
Expand Down Expand Up @@ -104,7 +103,6 @@ pub(crate) async fn update(
db: Db,
form: Form<Contextual<'_, EditLineItemDateForm>>,
) -> Result<RawHtml<String>> {
print!("Form:\n{form:?}");
match form.value {
Some(ref lid_form) => {
let lid_form = lid_form.clone();
Expand Down
2 changes: 1 addition & 1 deletion src/line_item_dates/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pub(crate) mod controller;
pub(crate) mod query;
// Required because structs generated by markup.rs are public
// Required because structs generated by markup.rs macros are public
pub mod model;
pub mod view;
2 changes: 0 additions & 2 deletions src/line_items/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ async fn new(db: Db, line_item_date_id: String) -> Result<RawHtml<String>> {

#[post("/create", data = "<form>")]
async fn create(db: Db, form: Form<Contextual<'_, NewLineItemForm>>) -> Result<HtmxResponder> {
print!("Form:\n{form:?}");
match form.value {
Some(ref li_form) => {
let quote_id = li_form.quote_id.clone();
Expand Down Expand Up @@ -132,7 +131,6 @@ async fn edit<'a>(db: Db, id: String) -> Result<RawHtml<String>> {

#[post("/update", data = "<form>")]
async fn update(db: Db, form: Form<Contextual<'_, EditLineItemForm>>) -> Result<RawHtml<String>> {
print!("Form:\n{form:?}");
match form.value {
Some(ref li_form) => {
let quote_id = li_form.quote_id.clone();
Expand Down
2 changes: 1 addition & 1 deletion src/line_items/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pub(crate) mod controller;
pub(crate) mod query;
// Required because structs generated by markup.rs are public
// Required because structs generated by markup.rs macros are public
pub mod model;
pub mod view;
1 change: 0 additions & 1 deletion src/quotes/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ async fn new() -> RawHtml<String> {

#[post("/create", data = "<form>")]
async fn create(db: Db, form: Form<Contextual<'_, NewQuoteForm>>) -> Result<HtmxResponder> {
print!("Form:\n{form:?}");
match form.value {
Some(ref quote_form) => {
let quote_form = quote_form.clone();
Expand Down
2 changes: 1 addition & 1 deletion src/quotes/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pub(crate) mod controller;
pub(crate) mod query;
// Required because structs generated by markup.rs are public
// Required because structs generated by markup.rs macros are public
pub mod model;
pub mod view;

0 comments on commit 96010e5

Please sign in to comment.