Skip to content

Commit 7511971

Browse files
committed
Add system module scaffolding and update documentation
Introduced a new `system` module and updated crate-level documentation for improved API discoverability. The CHANGELOG was revised to reflect documentation improvements, packaging changes, and bug fixes related to rule vector handling. Updated `lib.rs` to include the new module.
1 parent 3731f4b commit 7511971

File tree

8 files changed

+11
-16
lines changed

8 files changed

+11
-16
lines changed

CHANGELOG.md

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,19 @@ and small additions.
1010
## [UNRELEASED]
1111

1212
### Added
13-
- Added Basic Documention by way of "cargo doc".
1413

15-
### Changed
16-
- Changed cargo.toml so that the crate upon publication only includes the necessary components.(e.g. excludes tests, examples... etc)
17-
18-
### Fixed
19-
- Fixed the logic of defuzz.rs, rulespace.rs, aggregate.rs where the Rules Vector...etc would be erased after agrragate and defuzzify due to using mem::take, to borrowing.
14+
- Crate-level and module documentation to improve API discoverability by way of "crate doc".
2015

21-
- fixed mamdani_test.rs according to the API change of above fix.
16+
### Changed
2217

23-
### Deprecated
24-
-
18+
- Packaging: restrict published crate contents via Cargo.toml to exclude tests, examples, benches, and other development-only files.
2519

26-
### Removed
27-
-
20+
### Fixed
2821

29-
### Security
30-
-
22+
- Prevent rule vectors from being cleared during aggregation/defuzzification by replacing uses of mem::take with borrowed access in defuzz.rs, rulespace.rs, and aggregate.rs.
23+
- Update mamdani_test.rs to align with the above API changes.
3124

32-
## [0.1.0] - 2025-10-XX
25+
## [0.1.0] - 2025-10-09
3326

3427
### Added
3528
- Initial crate scaffolding and public module layout: `membership`, `variable`, `term`, `rulespace`,
@@ -57,6 +50,6 @@ and small additions.
5750
- Public API is not stabilized and may change between 0.x releases.
5851

5952
<!-- Update links if the repository slug changes. -->
60-
[UNRELEASED]: https://github.com/joushuakent/rust-fuzzylogic/compare/UNRELEASED
53+
[UNRELEASED]: https://github.com/joushuakent/rust-fuzzylogic/compare/v0.1.0...HEAD
6154
[0.1.0]: https://github.com/joushuakent/rust-fuzzylogic/releases/tag/v0.1.0
6255

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ pub mod mamdani;
1010
pub mod ops;
1111
pub mod rulespace;
1212
pub mod sampler;
13+
pub mod system;
1314
pub mod term;
1415
pub mod variable;
1516

src/system.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
//use crate::prelude::*;

target/.rustc_info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"rustc_fingerprint":4715693574508695924,"outputs":{"7971740275564407648":{"success":true,"status":"","code":0,"stdout":"___.exe\nlib___.rlib\n___.dll\n___.dll\n___.lib\n___.dll\nC:\\Users\\Joshua\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\npacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_abi=\"\"\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"msvc\"\ntarget_family=\"windows\"\ntarget_feature=\"cmpxchg16b\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_feature=\"sse3\"\ntarget_has_atomic=\"128\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"windows\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"pc\"\nwindows\n","stderr":""},"17747080675513052775":{"success":true,"status":"","code":0,"stdout":"rustc 1.89.0 (29483883e 2025-08-04)\nbinary: rustc\ncommit-hash: 29483883eed69d5fb4db01964cdf2af4d86e9cb2\ncommit-date: 2025-08-04\nhost: x86_64-pc-windows-msvc\nrelease: 1.89.0\nLLVM version: 20.1.7\n","stderr":""}},"successes":{}}
1+
{"rustc_fingerprint":4715693574508695924,"outputs":{"17747080675513052775":{"success":true,"status":"","code":0,"stdout":"rustc 1.89.0 (29483883e 2025-08-04)\nbinary: rustc\ncommit-hash: 29483883eed69d5fb4db01964cdf2af4d86e9cb2\ncommit-date: 2025-08-04\nhost: x86_64-pc-windows-msvc\nrelease: 1.89.0\nLLVM version: 20.1.7\n","stderr":""},"7971740275564407648":{"success":true,"status":"","code":0,"stdout":"___.exe\nlib___.rlib\n___.dll\n___.dll\n___.lib\n___.dll\nC:\\Users\\Joshua\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\npacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_abi=\"\"\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"msvc\"\ntarget_family=\"windows\"\ntarget_feature=\"cmpxchg16b\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_feature=\"sse3\"\ntarget_has_atomic=\"128\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"windows\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"pc\"\nwindows\n","stderr":""}},"successes":{}}
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

target/debug/rust-fuzzylogic.exe

0 Bytes
Binary file not shown.

target/debug/rust_fuzzylogic.pdb

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)