kozabrada123
51c676c000
Fix broken luna.gitlab.io links ( #480 )
...
docs: fix broken luna.gitlab.io links
2024-02-25 09:54:06 +01:00
Flori
73c3d030f1
Move contribution guidelines to CONTRIBUTING.md ( #478 )
...
Moves the contribution guidelines from README.md to CONTRIBUTING.md, as
per @striezel's suggestion.
2024-02-04 22:30:08 +01:00
bitfl0wer
9f76afb6bb
Move contribution guidelines to CONTRIBUTING.md
2024-02-01 11:52:29 +01:00
Flori
82fd55b20c
License change ( #477 )
2024-01-31 23:59:42 +01:00
kozabrada123
5dc1dee27a
Update github/codeql-action to v3 ( #476 )
2024-01-31 23:15:08 +01:00
Dirk Stolle
362dd57504
Replace unmaintained actions-rs/toolchain by dtolnay/rust-toolchain ( #473 )
2024-01-31 23:02:10 +01:00
kozabrada123
36a72416d6
Fix example in readme for #456 ( #475 )
2024-01-31 22:53:13 +01:00
Dirk Stolle
d3e5df65d4
Update h2 to 0.3.24 to fix vulnerability RUSTSEC-2024-0003 ( #474 )
...
The update fixes a resource exhaustion vulnerability in h2 which
may lead to Denial of Service. For more information on that see
<https://rustsec.org/advisories/RUSTSEC-2024-0003 >.
2024-01-31 22:47:46 +01:00
Dirk Stolle
908e995949
Bump actions/setup-node in GHA workflow to v4 ( #472 )
2024-01-31 22:43:54 +01:00
Dirk Stolle
f0686892e0
Fix a few typos ( #471 )
2024-01-31 22:27:53 +01:00
bitfl0wer
28cdd43b9b
Include license header everywhere
2024-01-30 17:19:34 +01:00
bitfl0wer
3700347503
Change license to Mozilla Public License v2.0
2024-01-30 10:03:14 +01:00
bitfl0wer
234304465b
Change license to Mozilla Public License v2.0
2024-01-30 10:00:05 +01:00
Flori
7a7c468bd0
Coverage ( #468 )
...
Up the reported coverage on coveralls by adding some missing tests,
especially for types. Also removes/replaces some old, faulty or
non-idiomatic code.
While unit testing might seem a bit bloaty (especially with this many
additions), I'd argue that writing somewhat sensible tests is the only
good way to somewhat reliably keep things from breaking in larger
projects/bigger codebases, such as these.
Most of these tests should, hopefully, be of acceptable quality,
although I do admit that when writing tests, I sometimes just like to
turn my brain off
2024-01-24 23:44:31 +01:00
bitfl0wer
262a52a8e9
exclude trivial id() functions from coverage
2024-01-24 23:26:59 +01:00
bitfl0wer
3040dcc46b
Add comment about test_self_updating_structs
2024-01-24 23:02:16 +01:00
bitfl0wer
c950288df1
extend self updating structs test
2024-01-24 23:01:38 +01:00
bitfl0wer
e073ff26c4
remove hit limit test
2024-01-24 18:51:10 +01:00
bitfl0wer
3ffb124cd4
Add test for get_limit_config
2024-01-24 12:32:08 +01:00
bitfl0wer
57e6cb438d
Add test to hit ratelimit
2024-01-24 12:21:46 +01:00
bitfl0wer
970f5b8b4f
Remove PartialOrd from Emoji because unneccessary
2024-01-23 23:53:08 +01:00
bitfl0wer
98f42aa03b
Add Message PartialEq Test
2024-01-23 23:42:00 +01:00
bitfl0wer
9cc7ede763
Add partial_eq test for relationship.rs/Relationship
2024-01-23 23:31:35 +01:00
bitfl0wer
a2b6d4e407
Remove old/redundant code from attachment.rs
2024-01-23 23:11:37 +01:00
bitfl0wer
41a0e2fe27
Add to_public_user test
2024-01-23 23:06:24 +01:00
bitfl0wer
00c70501c4
Rename to_public_user into into_public_user
2024-01-23 23:06:14 +01:00
bitfl0wer
97ab757633
Add unit tests for guild.rs entities
2024-01-23 21:13:15 +01:00
bitfl0wer
7434690027
Remove Eq fromn Guild as it is not Eq
2024-01-23 21:05:01 +01:00
bitfl0wer
577a399a7b
Create tests from to_str and from_str for GuildFeatures
2024-01-23 20:50:19 +01:00
bitfl0wer
11df180446
APPEND: Remove unused imports
2024-01-23 19:08:35 +01:00
bitfl0wer
0923de59a4
Replace usage of Arc<RwLock<...>> in public APIs with Shared<...>
2024-01-23 19:07:23 +01:00
bitfl0wer
8846159ffd
Remove impl Eq from types that didn't qualify for Eq
2024-01-23 18:43:06 +01:00
bitfl0wer
013687c810
write unit tests for config and entities
2024-01-22 20:57:29 +01:00
bitfl0wer
c6e7724650
rustfmt
2024-01-22 20:57:17 +01:00
bitfl0wer
74fc954d1a
Fix broken behaviour for ConfigEntity
2024-01-22 20:57:08 +01:00
Flori
fe8106d2a1
"Self updating structs" API improvements ( #467 )
...
This PR slightly improves the ergonomics of working with self-updating
structs, by making the changes as documented in #466 .
2024-01-22 15:19:24 +01:00
bitfl0wer
21699e5899
Loosen bounds on IntoShared<T>
2024-01-22 15:00:46 +01:00
bitfl0wer
5372d2c475
Make IntoShared trait with blanket implementation
2024-01-22 14:56:23 +01:00
bitfl0wer
29f3ee802a
Fix errors by moving into_shared out of Composite
2024-01-22 14:50:33 +01:00
bitfl0wer
6637f14b18
Replace Arc, Rwlock with Shared
2024-01-21 20:24:17 +01:00
bitfl0wer
a571a9e137
Write documentation for observe
2024-01-21 20:13:00 +01:00
bitfl0wer
57214fd2fe
Add documentation for into_shared
2024-01-21 17:15:11 +01:00
bitfl0wer
ca58767372
Rename to_shared to into_shared
2024-01-21 17:10:24 +01:00
bitfl0wer
2a7cae30b8
Define public method `to_shared` for dyn Composite
2024-01-21 17:07:54 +01:00
bitfl0wer
0660e25bdb
rustfmt
2024-01-21 17:07:30 +01:00
bitfl0wer
36ac6c1e5e
Replace use of Arc<RwLock<T>> with Shared<T>
2024-01-21 17:07:19 +01:00
bitfl0wer
315fe8e33b
Define type alias `Shared`
2024-01-21 17:06:43 +01:00
kozabrada123
8e25f401a5
Minor instance updates ( #465 )
...
make Instance::from_url_bundle pub, update Instance docs
2024-01-20 13:15:13 +01:00
Flori
85e494dd4a
merge main into dev ( #464 )
2024-01-19 21:55:29 +01:00
Flori
d3853700c0
Update README.md
2024-01-19 21:55:05 +01:00