Skip to content

Commit

Permalink
Fix building for default features accidentally including some items o…
Browse files Browse the repository at this point in the history
…nly needed for `serde-support`
  • Loading branch information
kellpossible committed May 11, 2020
1 parent 5603800 commit 258a164
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.7.1

+ Fix building for default features accidentally including some items only needed for `serde-support`.

## v0.7.0

+ Complete `serde` serialization for `Program`, and the various `Action` implementations. [#2](https://github.com/kellpossible/doublecount/issues/2).
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "doublecount"
version = "0.7.0"
version = "0.7.1"
description = "A double entry accounting system/library."
keywords = ["financial", "currency", "accounting", "exchange", "rate"]
categories = ["science", "mathematics"]
Expand Down
8 changes: 6 additions & 2 deletions src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ use super::{
use commodity::exchange_rate::ExchangeRate;
use commodity::{Commodity, CommodityTypeID};
use std::collections::HashMap;
use std::{marker::PhantomData, rc::Rc};
use std::rc::Rc;

#[cfg(feature = "serde-support")]
use std::marker::PhantomData;

use crate::{ActionTypeValue, ActionTypeValueEnum};
#[cfg(feature = "serde-support")]
Expand Down Expand Up @@ -215,6 +218,7 @@ impl ProgramState {
}
}

#[cfg(feature = "serde-support")]
#[cfg(test)]
mod tests {
use super::Program;
Expand All @@ -225,7 +229,7 @@ mod tests {
use chrono::NaiveDate;
use commodity::{Commodity, CommodityType, CommodityTypeID};
use std::{rc::Rc, str::FromStr};

#[test]
fn program_serde() {
let json = r#"
Expand Down

0 comments on commit 258a164

Please sign in to comment.