Skip to content

Commit 9df6a40

Browse files
authored
release: Prep v0.4.0 for release + update CHANGELOG.md (#29)
1 parent 07f5964 commit 9df6a40

File tree

2 files changed

+57
-2
lines changed

2 files changed

+57
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wolfram-app-discovery"
3-
version = "0.3.0"
3+
version = "0.4.0"
44
license = "MIT OR Apache-2.0"
55
readme = "README.md"
66
repository = "https://github.com/WolframResearch/wolfram-app-discovery-rs"

docs/CHANGELOG.md

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,57 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010

1111

1212

13+
## [0.4.0] — 2022-12-14
14+
15+
### Added
16+
17+
* Added support for app discovery on Linux ([#28])
18+
19+
This address issue [#27].
20+
21+
[`discover()`](https://docs.rs/wolfram-app-discovery/0.4.0/wolfram_app_discovery/fn.discover.html)
22+
will now return all Wolfram apps found in the default installation location
23+
on Linux (currently just `/usr/local/Wolfram/`).
24+
25+
[`WolframApp::from_app_directory()`](https://docs.rs/wolfram-app-discovery/0.4.0/wolfram_app_discovery/struct.WolframApp.html#method.from_app_directory)
26+
can now be used to get information on a Wolfram app installed in a non-standard
27+
location.
28+
29+
The following `WolframApp` methods are now supported on Linux:
30+
31+
- [`WolframApp::installation_directory()`](https://docs.rs/wolfram-app-discovery/0.4.0/wolfram_app_discovery/struct.WolframApp.html#method.installation_directory)
32+
- [`WolframApp::kernel_executable_path()`](https://docs.rs/wolfram-app-discovery/0.4.0/wolfram_app_discovery/struct.WolframApp.html#method.kernel_executable_path)
33+
- [`WolframApp::wolframscript_executable_path()`](https://docs.rs/wolfram-app-discovery/0.4.0/wolfram_app_discovery/struct.WolframApp.html#method.wolframscript_executable_path)
34+
- [`WolframApp::wstp_static_library_path()`](https://docs.rs/wolfram-app-discovery/0.4.0/wolfram_app_discovery/struct.WolframApp.html#method.wstp_static_library_path)
35+
36+
* Added custom logic for determining app metadata, in the absence of an
37+
available standard OS-provided format or API. At the moment, this consists
38+
of parsing LICENSE.txt and the WolframKernel script for the application type
39+
and version number, respectively.
40+
41+
This is likely more fragile than the implementation methods used on macOS and
42+
Windows, but necessary and sufficient for the time being to get discovery
43+
working for the most common use-cases. Future improvements are expected.
44+
45+
### Changed
46+
47+
#### Backwards Incompatible
48+
49+
- Changed the [`AppVersion::build_code()`] method to return `Option<u32>`
50+
(was `u32`). ([#28])
51+
52+
### Fixed
53+
54+
- Fixed an issue with platform unsupported error generated by
55+
`WolframApp::installation_directory()` incorrectly reporting that the error
56+
was in `WolframApp::from_app_directory()`. ([#28])
57+
58+
- Filled in an erroneously incomplete `todo!()` in the `Display` impl for
59+
`Error`. ([#28])
60+
61+
62+
63+
1364
## [0.3.0] – 2022-09-19
1465

1566
### Added
@@ -172,10 +223,14 @@ Initial release of `wolfram-app-discovery`.
172223
[#24]: https://github.com/WolframResearch/wolfram-app-discovery-rs/pull/24
173224
[#25]: https://github.com/WolframResearch/wolfram-app-discovery-rs/pull/25
174225

226+
<!-- v0.4.0 -->
227+
[#27]: https://github.com/WolframResearch/wolfram-app-discovery-rs/issues/27
228+
[#28]: https://github.com/WolframResearch/wolfram-app-discovery-rs/pull/28
175229

176230
<!-- This needs to be updated for each tagged release. -->
177-
[Unreleased]: https://github.com/WolframResearch/wolfram-app-discovery-rs/compare/v0.3.0...HEAD
231+
[Unreleased]: https://github.com/WolframResearch/wolfram-app-discovery-rs/compare/v0.4.0...HEAD
178232

233+
[0.4.0]: https://github.com/WolframResearch/wolfram-app-discovery-rs/compare/v0.3.0...v0.4.0
179234
[0.3.0]: https://github.com/WolframResearch/wolfram-app-discovery-rs/compare/v0.2.2...v0.3.0
180235
[0.2.2]: https://github.com/WolframResearch/wolfram-app-discovery-rs/compare/v0.2.1...v0.2.2
181236
[0.2.1]: https://github.com/WolframResearch/wolfram-app-discovery-rs/compare/v0.2.0...v0.2.1

0 commit comments

Comments
 (0)