All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Fixed duration returning empty string when only seconds are specified.
- Add
Duration
struct to ease usage of delays and other methods using string duration formats - Add Default impl for
Duration
- Add tests for
Duration
to_string() impl - Add example for multiple builders reusing a com runtime
- Change namespaces for
TaskCreationFlags
- Bump version to 1.0
- Bump windows dependency to 0.48.0 and fix related breaking changes
- Add tests for
Duration
to_string() impl - Add ability to specify a folder for scheduled tasks
- Update examples for in_folder()
- Add
planif::schedule::TaskScheduler
for handling COM creation
- Change
delay
methods to take durations instead ofstr
- Change
schedule_builder
s to take in a ComRuntime when creating them.- ComRuntime allows users to create multiple builders while reusing the com and stops users from accidentally dropping the com
- Moved
ComRuntime
toplanif::com
module
- Update documentation, add deny missing_docs
- Add builder function for a task's settings
- Add
NetworkSettings
(removed fromSettings
) - Add
IdleSettings
(also removed fromSettings
)
- Examples for monthly and monthly dow (day of week)
- Added Error when not setting a start_boundary for calendar events
- Assign value queries to trigger
- Fix documentation examples
- Fix DaysOfMonth values
- Fix Month values
- Fix monthly and monthly dow triggers
- Setting the DaysOfMonth to
DaysOfMonth::Last
causes an i32 overflow. The windows-rs call to SetDaysOfMonth takes an i32 but also expects theLast
value to be0x80000000
. For the time being, the library ignores the overflow error with#[allow(overflowing_literals)]
.
This release completes the available triggers in the Windows Task Scheduler.
- Add monthly dow trigger
- Add monthly trigger
- Add Changelog
- Add event trigger
- Add registration trigger
- Improve documentation
- Change triggers to accept bools instead of i16
- Update cargo toml
- Update readme
- Fix casting issues
- Removed mutability to parameters that do not need it
- Add ability to set settings on task
- Add ability to set principal
- Add repetition (untested)
- Add create logon task
- Add weekly task example
- Add time trigger example
- Create LICENSE
- Create builder/schedule for daily triggers