Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/basic-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
submodules: true

- name: Toolchain (stable with rustfmt, clippy)
uses: dtolnay/rust-toolchain@1.78
uses: dtolnay/rust-toolchain@1.81.0
with:
components: rustfmt, clippy

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "presenceforge"
version = "0.2.1"
version = "0.3.0"
edition = "2021"
authors = ["Sreehari Anil <sreehari7102008@gmail.com>"]
description = "A library for Discord Rich Presence (IPC) integration"
Expand All @@ -9,7 +9,7 @@ repository = "https://github.com/Sreehari425/presenceforge"
license = "MIT OR Apache-2.0"
keywords = ["discord", "rpc", "rich-presence", "ipc", "gaming"]
categories = ["api-bindings", "games"]
rust-version = "1.78.0"
rust-version = "1.81.0"

# Configuration for docs.rs to build documentation with all features
[package.metadata.docs.rs]
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
A Rust library for Discord Rich Presence that actually works without the headaches. No more fighting with the Discord SDK or dealing with complex C bindings.

[![License](https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-blue.svg)](https://github.com/Sreehari425/presenceforge#license)
[![Rust](https://img.shields.io/badge/rust-1.78+-blue.svg)](https://www.rust-lang.org)
[![Rust](https://img.shields.io/badge/rust-1.81+-blue.svg)](https://www.rust-lang.org)
![Crates.io Version](https://img.shields.io/crates/v/presenceforge)

> **Note**: This is currently in development (v0.2.1). Things might break.
> **Note**: This is currently in development (v0.3.0). Things might break.
> This is a learning/hobby project.
> Features and APIs may change in future versions.

Expand Down Expand Up @@ -42,18 +42,18 @@ Add PresenceForge to your `Cargo.toml`:

```toml
[dependencies]
presenceforge = "0.2.1"
presenceforge = "0.3.0"
```

For async support, add one of the runtime features:

```toml
[dependencies]
presenceforge = { version = "0.2.1", features = ["tokio-runtime"] }
presenceforge = { version = "0.3.0", features = ["tokio-runtime"] }
# OR
presenceforge = { version = "0.2.1", features = ["async-std-runtime"] }
presenceforge = { version = "0.3.0", features = ["async-std-runtime"] }
# OR
presenceforge = { version = "0.2.1", features = ["smol-runtime"] }
presenceforge = { version = "0.3.0", features = ["smol-runtime"] }
```

### Basic Usage (Synchronous)
Expand Down
9 changes: 9 additions & 0 deletions changelogs/0.3.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## [0.3.0] - release

### Changed (Breaking)

#### Minimum Supported Rust Version (MSRV)

- Bumped MSRV to Rust `1.81.0` in `Cargo.toml` and pinned channel to `1.81.0` in `rust-toolchain.toml`.
- Upgraded CI workflow configuration to target Rust 1.81.0.
- Required to maintain full compatibility with `thiserror` v2 (which relies on `core::error::Error` stabilized in Rust 1.81.0).
2 changes: 1 addition & 1 deletion docs/ACTIVITY_BUILDER_REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ let end_time = now + 300;
### 8. **Secrets** (For "Ask to Join" and Spectate features)

> **⚠️ Feature Flag Required:** These methods require the `secrets` feature flag to be enabled.
> Add to your `Cargo.toml`: `presenceforge = { version = "0.2.1", features = ["secrets"] }`
> Add to your `Cargo.toml`: `presenceforge = { version = "0.3.0", features = ["secrets"] }`

#### Note: untested feature

Expand Down
2 changes: 1 addition & 1 deletion docs/API_REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

API reference for PresenceForge (work-in-progress; APIs may change).

> **Note:** PresenceForge v0.2.1 is an early development release.
> **Note:** PresenceForge v0.3.0 is an early development release.
> It’s functional, but features may change or be incomplete.

## Table of Contents
Expand Down
14 changes: 7 additions & 7 deletions docs/ASYNC_RUNTIMES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Async Runtimes Guide

> **Note:** PresenceForge v0.2.1 is an early development release.
> **Note:** PresenceForge v0.3.0 is an early development release.
> It’s functional, but features may change or be incomplete.

## Table of Contents
Expand Down Expand Up @@ -63,13 +63,13 @@ Add to your `Cargo.toml` with **one** of these feature flags:
```toml
[dependencies]
# For Tokio
presenceforge = { version = "0.2.1", features = ["tokio-runtime"] }
presenceforge = { version = "0.3.0", features = ["tokio-runtime"] }

# For async-std
presenceforge = { version = "0.2.1", features = ["async-std-runtime"] }
presenceforge = { version = "0.3.0", features = ["async-std-runtime"] }

# For smol
presenceforge = { version = "0.2.1", features = ["smol-runtime"] }
presenceforge = { version = "0.3.0", features = ["smol-runtime"] }
```

**This exact code works with all three runtimes:**
Expand Down Expand Up @@ -141,7 +141,7 @@ Add to your `Cargo.toml`:

```toml
[dependencies]
presenceforge = { version = "0.2.1", features = ["tokio-runtime"] }
presenceforge = { version = "0.3.0", features = ["tokio-runtime"] }
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
```

Expand Down Expand Up @@ -322,7 +322,7 @@ async-std provides an async API similar to the standard library.

```toml
[dependencies]
presenceforge = { version = "0.2.1", features = ["async-std-runtime"] }
presenceforge = { version = "0.3.0", features = ["async-std-runtime"] }
async-std = { version = "1", features = ["attributes"] }
```

Expand Down Expand Up @@ -422,7 +422,7 @@ smol is a small and fast async runtime.

```toml
[dependencies]
presenceforge = { version = "0.2.1", features = ["smol-runtime"] }
presenceforge = { version = "0.3.0", features = ["smol-runtime"] }
smol = "2"
```

Expand Down
8 changes: 4 additions & 4 deletions docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ git ls-remote git@github.com:Sreehari425/presenceforge.git

If SSH works but you still have issues, please report them on GitHub Issues.

For now, use version `0.2.1` instead:
For now, use version `0.3.0` instead:

```toml
[dependencies]
presenceforge = "0.2.1"
presenceforge = "0.3.0"
```

---
Expand All @@ -74,7 +74,7 @@ The feature is called `tokio-runtime`, not `tokio`:

```toml
[dependencies]
presenceforge = { version = "0.2.1", features = ["tokio-runtime"] }
presenceforge = { version = "0.3.0", features = ["tokio-runtime"] }
```

Valid features: `tokio-runtime`, `async-std-runtime`, `smol-runtime`
Expand All @@ -94,7 +94,7 @@ Make sure you're using compatible versions:

```toml
[dependencies]
presenceforge = { version = "0.2.1", features = ["tokio-runtime"] }
presenceforge = { version = "0.3.0", features = ["tokio-runtime"] }
tokio = { version = "1", features = ["full"] } # Use version 1.x
```

Expand Down
12 changes: 6 additions & 6 deletions docs/GETTING_STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Welcome to PresenceForge! This guide will help you get started with integrating Discord Rich Presence into your Rust application.

> **Note:** PresenceForge v0.2.1 is an early development release.
> **Note:** PresenceForge v0.3.0 is an early development release.
> It’s functional, but features may change or be incomplete.

## What is Discord Rich Presence?
Expand Down Expand Up @@ -36,7 +36,7 @@ Add PresenceForge to your `Cargo.toml`:

```toml
[dependencies]
presenceforge = "0.2.1"
presenceforge = "0.3.0"
```

### With Async Support
Expand All @@ -46,13 +46,13 @@ If you need async support, add one of the runtime features:
```toml
[dependencies]
# For Tokio users
presenceforge = { version = "0.2.1", features = ["tokio-runtime"] }
presenceforge = { version = "0.3.0", features = ["tokio-runtime"] }

# For async-std users
presenceforge = { version = "0.2.1", features = ["async-std-runtime"] }
presenceforge = { version = "0.3.0", features = ["async-std-runtime"] }

# For smol users
presenceforge = { version = "0.2.1", features = ["smol-runtime"] }
presenceforge = { version = "0.3.0", features = ["smol-runtime"] }
```

## Your First Rich Presence
Expand All @@ -70,7 +70,7 @@ cd my-discord-presence

```toml
[dependencies]
presenceforge = "0.2.1"
presenceforge = "0.3.0"
```

### Step 3: Write your first presence
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.78.0"
channel = "1.81.0"
components = ["rustfmt", "clippy", "rust-src"]
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
//!
//! ```toml
//! [dependencies]
//! presenceforge = { version = "0.2.1", features = ["tokio-runtime"] }
//! presenceforge = { version = "0.3.0", features = ["tokio-runtime"] }
//! tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
//! ```
//!
Expand Down Expand Up @@ -90,7 +90,7 @@
//!
//! ```toml
//! [dependencies]
//! presenceforge = { version = "0.2.1", features = ["async-std-runtime"] }
//! presenceforge = { version = "0.3.0", features = ["async-std-runtime"] }
//! async-std = { version = "1", features = ["attributes"] }
//! ```
//!
Expand Down Expand Up @@ -125,7 +125,7 @@
//!
//! ```toml
//! [dependencies]
//! presenceforge = { version = "0.2.1", features = ["smol-runtime"] }
//! presenceforge = { version = "0.3.0", features = ["smol-runtime"] }
//! smol = "2"
//! ```
//!
Expand Down
Loading