Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/twilight-rs/twilight

Powerful, flexible, and scalable ecosystem of Rust libraries for the Discord API.
https://github.com/twilight-rs/twilight

Show the actual JSON in debug when we can't seralize a Event

Without doing this, we're left with fairly unhelpful messages as to
what we actually need to cha...

e4b149709ead771e3820281aa08bfaaca960a88d authored almost 5 years ago by Iris Faey Hoffmeyer <[email protected]>
Fix the event to be the correct one

Signed-off-by: Valdemar Erk <[email protected]>

83f493eee386203dd2d95d1b09136b9859ab60dc authored almost 5 years ago by Valdemar Erk <[email protected]>
Merge pull request #71 from Erk-/delete

Fix some routes giving an error back for no reason

d265a8c6509769f5bffaeb309a6084f91edfe054 authored about 5 years ago by Erk <[email protected]>
Fix content length not being set and fix typing trigger.

Signed-off-by: Valdemar Erk <[email protected]>

c459ef607dc3b0f070b7e2ce91da3df57e0212f3 authored about 5 years ago by Valdemar Erk <[email protected]>
Fix some routes giving an error back for no reason

Discord have some routes that returns a `204 No Content`
when it is correct, as some of them use...

03edf0a1bcf78b831b5c80ecf263603e4c9485ec authored about 5 years ago by Valdemar Erk <[email protected]>
Merge pull request #70 from Erk-/cluster

Use the `futures` crate instead of multiple sub crates.

c0ab211e093b001df740b6d3c5486779eb79bc92 authored about 5 years ago by Erk <[email protected]>
CHORE: run rustfmt

Signed-off-by: Valdemar Erk <[email protected]>

03630ccb805ac3bf55dbaae48ec684830372ec2d authored about 5 years ago by Valdemar Erk <[email protected]>
CHORE: Make clippy happy

Signed-off-by: Valdemar Erk <[email protected]>

dafb4277f796dc3526a7716b9bf302d56b3088f1 authored about 5 years ago by Valdemar Erk <[email protected]>
Use the `futures` crate instead of multiple `futures_*` crates

This change I have made because I think it is easier to control
version and most users will have...

5d8a2b06ffd6142dc4c4b60e5eab2433acf56c0f authored about 5 years ago by Valdemar Erk <[email protected]>
Merge pull request #69 from Erk-/update-embed

Make the definitions of the embed structures correct

678650fe2d7bf90046a5706c2b02f999f3b3a125 authored about 5 years ago by Erk <[email protected]>
Make the definitions of the embed structures correct

The structures now follow the definitions given on
discordapp.com

Signed-off-by: Valdemar Erk <...

1ebc75fe834e3358f956aad04afc5b04c53dd3e0 authored about 5 years ago by Valdemar Erk <[email protected]>
Merge pull request #67 from Arzte/Reaction_Remove

Implement ReactionRemove and ReactionRemoveAll cache updates

df6bcea06b66f17a9a4f31df82fc2b3a8e336e2d authored about 5 years ago by Erk <[email protected]>
Implement ReactionRemove and ReactionRemoveAll cache updates

Two out of the four in #25

Signed-off-by: Iris Faey Hoffmeyer <[email protected]>

e04bdbf02fd28c386d933e4ce0ea31f9f8d174ff authored about 5 years ago by Iris Faey Hoffmeyer <[email protected]>
Merge pull request #66 from Erk-/issue-66

Unicode reactions does not deserialize

662f5a49fd3a12104add3b26a35278f57e7e24c7 authored about 5 years ago by Erk <[email protected]>
Silence Clippy.

Signed-off-by: Valdemar Erk <[email protected]>

6b040f259eb4585012dc53339c47a2ce7c6f5985 authored about 5 years ago by Valdemar Erk <[email protected]>
Fix reaction type to correctly work with unicode reactions.

Signed-off-by: Valdemar Erk <[email protected]>

e421f462acb10e1cc5cc05fdb5607d093f458677 authored about 5 years ago by Valdemar Erk <[email protected]>
Merge pull request #61 from Arzte/shard_and_cache_are_buddies_now

Fix cache update on shard

5257f883d49ec30a2242ec5ad3cc4593ca3a4ee6 authored about 5 years ago by Erk <[email protected]>
(chore) rustfmt

For some reason my local copy of rustfmt doesn't format the file to this on the nightly build I'...

ffdf5924b066ee38914b4ba74d16cabf7624e513 authored about 5 years ago by Iris Faey Hoffmeyer <[email protected]>
Implment cache into shard event types

This will make cache require shard to use cache.
Maybe this should be put behind a feature flag?...

d9e929b8010e9a0bb44c795a0bd1b7001134634b authored about 5 years ago by Iris Faey Hoffmeyer <[email protected]>
Fix cache update on shard

There might be a better way to do this, but this one works at least. ;-)

4af697cecd5affbfd98fd32b2b0046314d6ffd05 authored about 5 years ago by Iris Faey Hoffmeyer <[email protected]>
Merge pull request #57 from Arzte/small_clippy_fixes

Small clippy fixes

c22b08e0bb0258f14166bb642ec2ddd09bfebdbc authored about 5 years ago by Erk <[email protected]>
Merge pull request #60 from dvtkrlbs/issue50

Add new field to Webhook

155f948f1634455df0c47e7c829b39789c29145b authored about 5 years ago by Erk <[email protected]>
Merge pull request #64 from Erk-/rustfmt-1

(chore): run rustfmt

d9cd0ae75ff8e8f2aaeb9e4341fd7e46a69ffc02 authored about 5 years ago by Erk <[email protected]>
(chore): run rustfmt

Signed-off-by: Valdemar Erk <[email protected]>

1198611a20f8549eea770bd9c18ea837f086552c authored about 5 years ago by Valdemar Erk <[email protected]>
Merge pull request #63 from Erk-/deadlock-cache-2

Fix deadlocks in cache

300f7c05db0dd42dc775c8b45c29f0239bce16ef authored about 5 years ago by Erk <[email protected]>
Merge pull request #62 from Erk-/issue-40

Update to tokio 0.2 stable.

22512d921c03dc0286e4ece5cf7023c652c6de36 authored about 5 years ago by Erk <[email protected]>
Remove unneeded comments and code.

Signed-off-by: Valdemar Erk <[email protected]>

06580d24d865e33126ae5d0c8a7311d0b7b08ef7 authored about 5 years ago by Valdemar Erk <[email protected]>
(Chore) rustfmt

Signed-off-by: Valdemar Erk <[email protected]>

e8039907a0eaaee203fa38adf9f92f39e61be1b3 authored about 5 years ago by Valdemar Erk <[email protected]>
Fix deadlocks in cache

Deadlocsk would happen because it tried to aquire a lock while the
lock was locked in the scope....

cfe05a5f1e0d2c0358b16c12690ced7ecfad98eb authored about 5 years ago by Valdemar Erk <[email protected]>
Update all packages to release versions.

Signed-off-by: Valdemar Erk <[email protected]>

471a25f617cdbf0ebe5265c42a517a6322050b62 authored about 5 years ago by Valdemar Erk <[email protected]>
Extend the timeout

Signed-off-by: Valdemar Erk <[email protected]>

b971b096437bb49048f8068446e207272ac409a6 authored about 5 years ago by Valdemar Erk <[email protected]>
Update to tokio 0.2 stable.

This update seems to fix #40, though more
testing is required to make fully sure that
it does. W...

e90a74f9ce3697127810012f5e045da24d4f9987 authored about 5 years ago by Valdemar Erk <[email protected]>
Use string literals

clippy likes them more than non literals

b5610261cde881f70efa26ea64b8e926336f54d3 authored about 5 years ago by Iris Faey Hoffmeyer <[email protected]>
change emoji's to unicode representations

clippy doesn't like literal unicode emojis

b853bcae2aaab38f7078a734ae0667603bd39aaa authored about 5 years ago by Iris Faey Hoffmeyer <[email protected]>
Fix tokio-tungstenite to a commit.

Signed-off-by: Valdemar Erk <[email protected]>

1bb77cf829ebfb0d65ad2a3c1dc4aeef8dc8f395 authored about 5 years ago by Valdemar Erk <[email protected]>
Add new field to Webhook

7fa093d48a4e2bc7bc4e456c5a7564ec3af1c935 authored about 5 years ago by Tunahan Karlibas <[email protected]>
Chore: rustfmt

Signed-off-by: Valdemar Erk <[email protected]>

2cbcb0e55681b88fbfa5e13010416848b9bb7491 authored about 5 years ago by Valdemar Erk <[email protected]>
Merge pull request dawn-rs#55 from dvtkrlbs

* Add emoji field to Activity
* Fix test

d2114ee3976336a189baa50d369ce5fb3ecf27e4 authored about 5 years ago by Valdemar Erk <[email protected]>
Add emoji field to Activity

6d211e52ddf6f84925b342dfec3b9de90fa9b624 authored about 5 years ago by Tunahan Karlibas <[email protected]>
Fix test

Signed-off-by: Valdemar Erk <[email protected]>

f4dcaaa346d87ec871b68e4902e8fe0b454d9547 authored about 5 years ago by Valdemar Erk <[email protected]>
Merge pull request #58 from Arzte/audit_entry_optional/add_member_id

Add message_id to optional audit entry info

28fbc164a2628a6a1834418a5a28b2813f86d015 authored about 5 years ago by Erk <[email protected]>
Merge pull request #59 from Arzte/audit_log_events

Add new audit log events

b07413df5f5ee7fd9c647f230929715202fff347 authored about 5 years ago by Erk <[email protected]>
Add new audit log events

Fixes #52

f4750cd4197c03b74f49b35d4dc95928842b4431 authored about 5 years ago by Iris Faey Hoffmeyer <[email protected]>
Add message_id to optional audit entry info

Fixes #54

1bed0a6c91773b9c4df72c443e54fdea3fbaca03 authored about 5 years ago by Iris Faey Hoffmeyer <[email protected]>
Add presence field to `RequestGuildMembers` and associated payloads

* Add presence field to GetGuildMembers
* Add presences field to MemberChunk

2795a10cb3a4c24d188e31911275d7a6abdfa7bd authored about 5 years ago by Iris Faey Hoffmeyer <[email protected]>
Update to stable (#45)

Update to stable and update actions

This commit updates most of the dependencies to stable ve...

527a3519b4d71686926f7c39d3b97010b5c25b2c authored about 5 years ago by Erk <[email protected]>
[gateway] queue shards before connecting (#36)

Before starting a connection, put in a request to the queue and wait for
it to be realized. Thi...

bd1fcb5a9dae6d9365bdfc0bba619eb579f57548 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[gateway] request gateway URL on every connection (#38)

Whenever a shard starts a connection, first get the connection from the
HTTP API via a `dawn_ht...

18d1b276b316191596aab45a0a9d96d75cc35229 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[http] return request finalizers on all of client (#39)

On all of the HTTP client's methods, return a finalizer request struct,
rather than returning a...

1c47a197f119bf8138bf5c12ec5946bb066168af authored about 5 years ago by Zeyla Hellyer <[email protected]>
[gateway] support raw payload event (#33)

Add an event variant called `ShardPayload`, which is emitted every time
a payload comes in. It ...

10edc1e730d652e469b2395b9b95826644fdd8e0 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[http] simplify id param types (#22)

Simplify the types of parameters accepting IDs. This changes all of the
parameters using univer...

ad3c7c16440002d1a4b3dd7ba52066f73c392ee7 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[http] break out request fields into structs (#20)

Break out each of the Request structs in the `request` module into,
generally, two structs: the...

53f724523eb1dc9d416478bd493843950fe505d6 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[gateway] add transport compression support (#13)

Add zlib-stream support for the gateway, which will inflate compressed
messages over the gatewa...

3603eef67f04bd84c745fe35842d29a1e5cf9206 authored about 5 years ago by Erk <[email protected]>
[ci] fix workspace use in actions (#21)

Workspaces don't support `--all-features` in commands like `cargo test`,
which is a silent erro...

bc78b9ddb1f568a11a69b12147a80c95ffec33e2 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[cache] rework 'cache' and 'cacheupdate' (#19)

Rework the `dawn_cache_trait::Cache` and `dawn_cache_trait::CacheUpdate`
traits to allow cache ...

72a3f7106ee34fdce948ee7f2402cba9a84133bf authored about 5 years ago by zeyla hellyer <[email protected]>
[model] make gateway::payload::memberadd a newtype (#18)

Make `gateway::payload::MemberAdd` a newtype around `guild::Member`,
because the payload includ...

9e57c4ad10547601b945d68536662f5532a9dbf3 authored about 5 years ago by zeyla hellyer <[email protected]>
[model] fix some incorrect model definitions (#17)

Fix some of the model definitions and fix compilation without the serde
feature.

- in `chann...

a460f55f7cf3bc5428a846f7d227ce670c914d9a authored about 5 years ago by zeyla hellyer <[email protected]>
[http] remove 'http' and 'url' dependencies (#16)

Remove the 'http' and 'url' dependencies, because reqwest re-exports
both of these crates' type...

07a842465817317615e1baf6fcbc5d296832bbca authored about 5 years ago by zeyla hellyer <[email protected]>
[gateway/http] remove 'snafu' dependency (#15)

Remove snafu as a dependency, opting to instead use `Result::map_err`
and `Option::ok_or` direc...

325ee4e0625a7b6db1d42fd157aa6548dfad5388 authored about 5 years ago by zeyla hellyer <[email protected]>
[gateway] remove all unwraps, expects, panics (#12)

Remove all of the unwraps, expects, and panics, using non-poisoning
alternatives like `futures:...

93072242b2e3203e93c9ce8c08ad2af577a78ccb authored about 5 years ago by zeyla hellyer <[email protected]>
[model] channel/embed: use default color

If no color is present with the embed, then set a default value of 0.

Signed-off-by: Zeyla Hell...

78775afccb78d5517ecef8e1be57b0323f90aace authored about 5 years ago by Zeyla Hellyer <[email protected]>
[gateway] shard/processor: fix listeners clearing

Fix the clearing of the listeners map after sending events to listeners.
The vec of listeners to...

e7221dd5a2d051d67777c4a4b9b5c4057bd72d5a authored about 5 years ago by Zeyla Hellyer <[email protected]>
[gateway] shard/session: drop if executor ready

When spawning a task to stop the heartbeater when Session drops, only do
it if the executor sign...

f5bce51101265fff0eccc937d819af7f9e050384 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[project] add 'gateway'

Information about the gateway can be read about here:

<https://dawn.valley.cafe/chapter_1_crate...

644d2b62016343f108fad06f8dc2426f0528f6ac authored about 5 years ago by Zeyla Hellyer <[email protected]>
[http] impl debug for client

Signed-off-by: Zeyla Hellyer <[email protected]>

82e6bf1ff78cb8a9f92d4115c3255e3305394d0e authored about 5 years ago by Zeyla Hellyer <[email protected]>
[command-parser/http] cargo clippy

Signed-off-by: Zeyla Hellyer <[email protected]>

72f055b135b80a68c04265986493cfc2faf1b461 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[cache] cargo fmt

Signed-off-by: Zeyla Hellyer <[email protected]>

270546c0f4e1ee5f6dd5962028db52198c5a421a authored about 5 years ago by Zeyla Hellyer <[email protected]>
[http] update dependencies

Update the `http` dependencies:

- `reqwest` from git remote to `0.10.0-alpha.1`
- `tokio-0.2.0 ...

e9a377dfe957f330132f692c4697b4f032f6d565 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[model] switch out 'serde_json' for 'serde_value'

To prevent relying on a serialization format, use 'serde_value', which
is agnostic over formats....

e6f86f6b81be3793978686bed99f5d8f376ee797 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[command-parser] add from impl, loosen parser::new

Add a `From<Into<Config>> for Parser` implementation, and loosen the
`Parser::new` method to acc...

53085c314f8f022774c71fc92bf075753dec17cb authored about 5 years ago by Zeyla Hellyer <[email protected]>
[cache/in-memory] update for new model definitions

Signed-off-by: Zeyla Hellyer <[email protected]>

9833145d3b4cbdb8afc72cffc148b4cd7647da4e authored about 5 years ago by Zeyla Hellyer <[email protected]>
[command-framework] remove 'dawn-model' dependency

Remove the optional dependency on `dawn-model`. This means getting rid
of:

- `parse` which took...

07648c3361c42bcffc8088e514fc8f75e95c68a9 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[model] rustfmt

Signed-off-by: Zeyla Hellyer <[email protected]>

1dba6ec2a34f2276f4c807c55aa1afb1f56c7bb2 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[model] gateway/activity_type: add 'watching'

Add the `Watching` variant to `gateway::presence::ActivityType`.

Signed-off-by: Zeyla Hellyer <...

914148392401c4b8653b015ae856cb1b14ea3d74 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[model] gateway/payload: simplify identify

Simplify the `Identify` structs by removing some unnecessary stuff.
Additionally, add the `Ident...

a37454607f4f3871ec91a40fb635423feaf0136d authored about 5 years ago by Zeyla Hellyer <[email protected]>
[model] guild ids are optional

The guild IDs on guild channels and members are optional.

Signed-off-by: Zeyla Hellyer <zeyla@h...

d942b8b855a0c13652e598dbbf8c851dac895055 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[model] fix (de)serializing of bitflags

Signed-off-by: Zeyla Hellyer <[email protected]>

806a2502d1f5330d8bbf3ead5260bf93f87cbaa5 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[model] fix deserialization of some types

Fix deserializing some types:

- Add `Guild::lazy` and fix parsing of
`Guild::premium_subscrip...

76f7686270c7166bfd137345601994a02f310841 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[model] gateway/payload: impl deref for newtypes

Implement `std::ops::{Deref, DerefMut}` for all of the newtypes in the
`gateway::payload` module...

40d1ed862fe068f2305b149950cf37a3e90bbc1c authored about 5 years ago by Zeyla Hellyer <[email protected]>
[ci] add workflow for grcov support

Use `actions-rs/grcov` for grcov code coverage support.

Signed-off-by: Zeyla Hellyer <zeyla@hel...

abdba860ac6c166c6689802a37c3fe7b8648fbbb authored about 5 years ago by Zeyla Hellyer <[email protected]>
[ci] lint with clippy

Lint on PRs and pushes with actions-rs/clippy-check to catch some bad
code conventions.

clippy-...

ade0067c2fe32aa5da6c0659a15a98ed460df26c authored about 5 years ago by Zeyla Hellyer <[email protected]>
[cache] add initial in-memory implementation

Add the initial in-memory implementation of the Cache.

The Cache in the core crates is split in...

c660a21c8cbbbc42693aee4e94a7b56be3f586dd authored about 5 years ago by Zeyla Hellyer <[email protected]>
[model] fix some gateway type definitions

Signed-off-by: Zeyla Hellyer <[email protected]>

ea220cab7b9d1e70cf2675d8e4427cb65e62dc5e authored about 5 years ago by Zeyla Hellyer <[email protected]>
[model] id: derive ord

Derive `Ord` on the `id` types.

Signed-off-by: Zeyla Hellyer <[email protected]>

671ab1c0ae21e8166d9325f490419a7e08dee78f authored about 5 years ago by Zeyla Hellyer <[email protected]>
[model] guild/status: rename online variant

For the `guild::GuildStatus` enum, rename the `OnlineGuild` variant to
simply `Online`.

Signed-...

30c699685b9f1d65d22e830707ad196772703580 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[http] examples/proxy: remove unused import

Signed-off-by: Zeyla Hellyer <[email protected]>

9e909d295d86db73d1613fd5a5b3e3f861dc3871 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[cache/trait]: don't depend on model features

We don't need the features of the model crate (serde support), so turn
off all of the default fe...

e1d1cf2eaba93ec7ebfc94d6625b88d62335f903 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[command-parser] depend on model with no features

Depend on `dawn-model`, but don't require its features. We don't serde
support for this crate. T...

c1913e770758141c0f39d6be8ecc8f8585dafd6e authored about 5 years ago by Zeyla Hellyer <[email protected]>
[project] depend on rust beta from nightly

Reduce the Rust requirement from nightly to Beta (1.39+).

This updates the wording in READMEs t...

7ed152367aebcd21f102ffc4d15455ce7a3853a4 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[ci] add workflow for running cargo-audit

Adds a workflow for running `cargo-audit` on PRs,
pushes, and on a daily schedule.

Signed-of...

bd2f5af1b0c033868e6d296afa45d28cc0a7f3af authored about 5 years ago by Erk <[email protected]>
[model] make serde optional

Make the serde dependencies optional, allowing users to switch between
enabling and disabling th...

97fdaf118db872c14089a6420a5c331eab033dac authored about 5 years ago by Zeyla Hellyer <[email protected]>
[http] bump dependencies

Signed-off-by: Zeyla Hellyer <[email protected]>

fcb93781467b3ed2572cd94bc534f56aeb016d78 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[model] remove chrono

Remove chrono, which was being used as a feature to deserialize some
datetimes into chrono types...

f6672b97f906f9020b0e34c36b498af7d26d8ec7 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[model] invite/metadata: Remove 'revoked' field

This field is removed cf.
<https://github.com/discordapp/discord-api-docs/commit/70390b75377098...

639a04592d13766ee6bdf67acc767a5286d2c60f authored about 5 years ago by Erk <[email protected]>
[http] examples: add dawn-http-proxy example

Signed-off-by: Zeyla Hellyer <[email protected]>

451e30c49ab0ee9bafc8821699bd1d0e07ff0029 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[ci] add rustfmt to lints

Signed-off-by: Zeyla Hellyer <[email protected]>

ddfe693cb112ed8ceebb83af17ae02067bc6ab17 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[http] deps: pin reqwest version

Reqwest is currently in the middle of upgrading dependencies and
toggling some features we need ...

eb343f24b1479fbfc3da9f0fd9d56da6c6885166 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[http] client: support skipping ratelimiter

Support skipping the ratelimiter, such as when using an external proxy.
This will essentially "t...

2d862c97b02dea0233a9a1cc68ef1b1b50d4c8e2 authored about 5 years ago by Zeyla Hellyer <[email protected]>
[cache] trait: remove unused 'std::sync::arc'

Signed-off-by: Zeyla Hellyer <[email protected]>

dd707d52ca21e139249413976b702fe886eef9df authored about 5 years ago by Zeyla Hellyer <[email protected]>
[http] remove pending structs

Remove the 3 pending future structs, opting instead to just use
async/await and return `impl Fut...

1ce2beef6e27d47e5eed1765b163276f334ae73f authored about 5 years ago by Zeyla Hellyer <[email protected]>