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.
- Support for properly handling frame headers from Discord
- This should result in slight performance improvements from not allocating more than necessary.
- This also allows for larger payloads to be sent
- Removed
tracing
crate in favour oflog
- Compilation errors on Rust v1.69.x
- Downgrade quork to 0.7.1 to fix compilation error on Rust v1.69.x
- This downgrades the windows crate to a version that is compatible with the MSRV
Manager::new
function is nowpub(crate)
. This makes no difference to the public API, as theManager
struct was never public.
Connected
andDisconnected
events for when the client successfully connects and disconnects. Thanks to @JakeStanger.
EventData
documentation references to reference theEvent
enum instead ofEventData
- Expose
event_handler
module - Exposed types are
Context
,EventCallbackHandle
andHandler
- Update MSRV to 1.69.0
- Sleep on connection failure
- Missing buttons field
- Shutdown function incorrectly throwing NotStarted error
- Debug printing in release
- PartialUser struct
- Send & Receive Loop now breaks for
ConnectionRefused
error kind, rather thanWouldBlock
- Removed client thread handle (now is kept internally on the Client struct)
- Removed
STARTED
boolean. (Pretty much pointless as it is only different between when the client has been started, but is not yet ready) - Increase connection timeout on Windows to 16 seconds
on_event
now returns an EventCallbackHandle, which, if dropped, removes the event handler
- Ability to remove event handlers #40
- Support buttons #38
- Client can now be cloned
- Better types for the Error event
- Ready event called every single connection in send & receive loop
0.5.17 - 2023-08-16
- Added back list of events for Bevy crate
0.5.16 - 2023-08-16
- Implemented means for stopping client send and receive thread
- Removed unused strum dependency
0.5.15 - 2023-07-13
- Add is_ready and is_started checks
- Removed unused deps by
0.5.14 - 2022-12-16
Full Changelog: v0.5.13...v0.5.14
0.5.13 - 2022-12-16
- Update Rust crate bytes to 1.3 by @renovate in #31
0.5.12 - 2022-11-07
Full Changelog: v0.5.11...v0.5.12
0.5.11 - 2022-11-07
block_until_event
function which blocks the current thread until a given event is fired
- Use
AtomicBool
instead ofMutex<bool>
0.5.9 - 2022-10-04
- Send/Receive loop would timeout indefinitely
- Use
tracing
crate for logs
0.5.8 - 2022-09-18
- party.id should be String, not u32 by @bigfarts in #15
- Update actions/cache action to v3.0.8 by @renovate in #14
0.5.7 - 2022-08-05
- Downgrade compiler edition by @jewlexx in #13
0.5.6 - 2022-08-01
- Minor bug fix relating to empty RPC pipe
- Configure Renovate by @renovate in #8
- Update actions/cache action to v3.0.5 by @renovate in #9
- Update Rust crate bytes to 1.2 by @renovate in #11
0.5.5 - 2022-07-27
Full Changelog: v0.5.4...v0.5.5
0.5.4 - 2022-06-19
- Fixed issues with timeouts on Discord connections
- Fixed issues with Unix connections
0.5.0 - 2022-04-21
- Removed
rich_presence
as a feature option, as it is redundant
- Updated Readme and metadata
- Minor bug fixes and performance improvements
- Under new ownership, forked by Juliette Codor (jewlexx)
-
Updated to newest Rust compiler edition (2021)
-
Updated deps to latest version
-
Fixed issues that came with the above changes
- Connection manager completely rewritten
- Allow cloning of clients
0.2.4 - 2018-12-04
- No longer depends on
libc
for process id lookup
0.2.3 - 2018-04-08
- Connection manager with reconnection
- Method to clear the current Rich Presence state
- Move rich presence code back into models
- Remove command payload and add generic one
- Timestamps are now 64 bit unsigned integers instead of 32 bit ([@Bond-009]) [6bbc9f8][c:6bbc9f8]
0.2.2 - 2018-04-03
- Use a default socket connection for the current platform
0.2.1 - 2018-04-03
- Move common connection methods into trait
0.2.0 - 2018-04-02
- Error type
- Windows support ([@Tenrys]) [620e9a6][c:620e9a6]
- Convert OpCode with
try_from
instead oftry
- Use Rust 1.25 style nested imports
0.1.5 - 2018-03-28
- Opcode stored in Message is now an OpCode enum
- Rich Presence now lives in it's own submodule
0.1.4 - 2018-03-23
- Opcodes are now represented as enum instead of integers
0.1.3 - 2018-03-23
- Contributing information
- Use
libc::getpid
to allow builds with stable instead of nightly - Make client struct fields private
- Make models private again and add prelude
- Connections are now using a shared Connection trait
0.1.2 - 2018-03-22
- Logging support
0.1.1 - 2018-03-22
- Make models publicly accessible
0.1.0 - 2018-03-22
- Setting Rich Presence status
- Unix socket connection support