Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
magiclen committed Nov 29, 2023
1 parent 8d7847c commit 3782825
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ use chinese_lunisolar_calendar::EarthlyBranch;
assert_eq!(43, lunisolar_date.get_ba_zi_weight(EarthlyBranch::Ninth));
```

To calculate the Ba Zi weight, the `ba-zi-weight` feature must be enabled.

## No Std

Disable the default features to compile this crate without std.

```toml
[dependencies.chinese-lunisolar-calendar]
version = "*"
default-features = false
```

## Crates.io

https://crates.io/crates/chinese-lunisolar-calendar
Expand Down
12 changes: 12 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ use chinese_lunisolar_calendar::EarthlyBranch;
assert_eq!(43, lunisolar_date.get_ba_zi_weight(EarthlyBranch::Ninth));
# }
```
To calculate the Ba Zi weight, the `ba-zi-weight` feature must be enabled.
## No Std
Disable the default features to compile this crate without std.
```toml
[dependencies.chinese-lunisolar-calendar]
version = "*"
default-features = false
```
*/

#![cfg_attr(not(feature = "std"), no_std)]
Expand Down

0 comments on commit 3782825

Please sign in to comment.