kozabrada123
5209348ac1
Fix code scanning alerts on #487 ( #488 )
...
fix codescanning alerts on 0.15.0
2024-04-16 15:54:30 +02:00
kozabrada123
9304af2594
Ignore unused imports for pub use ( #484 )
2024-03-15 17:08:46 +01:00
kozabrada123
2d72442522
Minor docs updates, add Get Private Channels ( #483 )
...
* feat: add get_private_channels
* minor docs update and reorder
2024-03-15 16:13:51 +01:00
kozabrada123
5a1931951f
Fix broken luna.gitlab.io links ( #480 )
...
docs: fix broken luna.gitlab.io links
2024-02-25 09:54:06 +01:00
Flori
64feb91680
License change ( #477 )
2024-01-31 23:59:42 +01:00
Dirk Stolle
c5bfac66e5
Fix a few typos ( #471 )
2024-01-31 22:27:53 +01:00
bitfl0wer
b8ba92cf07
Include license header everywhere
2024-01-30 17:19:34 +01:00
bitfl0wer
60f55d9d3a
exclude trivial id() functions from coverage
2024-01-24 23:26:59 +01:00
bitfl0wer
f3771b31ca
Remove PartialOrd from Emoji because unneccessary
2024-01-23 23:53:08 +01:00
bitfl0wer
24cec523e0
Remove old/redundant code from attachment.rs
2024-01-23 23:11:37 +01:00
bitfl0wer
c13ba6b291
Rename to_public_user into into_public_user
2024-01-23 23:06:14 +01:00
bitfl0wer
b24714bc68
Remove Eq fromn Guild as it is not Eq
2024-01-23 21:05:01 +01:00
bitfl0wer
3df3eae7ff
APPEND: Remove unused imports
2024-01-23 19:08:35 +01:00
bitfl0wer
5e13f12cbd
Replace usage of Arc<RwLock<...>> in public APIs with Shared<...>
2024-01-23 19:07:23 +01:00
bitfl0wer
9d543fcd27
Remove impl Eq from types that didn't qualify for Eq
2024-01-23 18:43:06 +01:00
bitfl0wer
c405162372
rustfmt
2024-01-22 20:57:17 +01:00
bitfl0wer
a3bae6d312
Fix broken behaviour for ConfigEntity
2024-01-22 20:57:08 +01:00
Flori
ed3786c0a6
"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
2209efc6a0
Loosen bounds on IntoShared<T>
2024-01-22 15:00:46 +01:00
bitfl0wer
b521928f81
Make IntoShared trait with blanket implementation
2024-01-22 14:56:23 +01:00
bitfl0wer
c4bea069b7
Fix errors by moving into_shared out of Composite
2024-01-22 14:50:33 +01:00
bitfl0wer
196a36a5fe
Write documentation for observe
2024-01-21 20:13:00 +01:00
bitfl0wer
bae0ce8b1f
Add documentation for into_shared
2024-01-21 17:15:11 +01:00
bitfl0wer
400d4c74cf
Rename to_shared to into_shared
2024-01-21 17:10:24 +01:00
bitfl0wer
22e8ca2a97
Define public method `to_shared` for dyn Composite
2024-01-21 17:07:54 +01:00
bitfl0wer
48fddb7378
rustfmt
2024-01-21 17:07:30 +01:00
bitfl0wer
39b1f1fa72
Replace use of Arc<RwLock<T>> with Shared<T>
2024-01-21 17:07:19 +01:00
bitfl0wer
92654989e8
Define type alias `Shared`
2024-01-21 17:06:43 +01:00
kozabrada123
163db42536
Minor instance updates ( #465 )
...
make Instance::from_url_bundle pub, update Instance docs
2024-01-20 13:15:13 +01:00
Flori
bc2dbb8017
Version 0.14.0 ( #463 )
...
## Fixes
- Fix gateway heartbeat on WASM: #460
## Changes
- Update `GuildDefaults` to use new enums
- Make new enums derive `sqlx::Type`
- Feature lock UpdateMessage implementations
## Package changes
- Bump package version, especially reqwest from 0.11.22->0.11.23 -
removes need for custom git branch in Cargo.toml
2024-01-19 21:50:26 +01:00
kozabrada123
7a878d03ac
Revert "Mess w/ the tests to see if it really works"
...
This reverts commit 7b975e3c95
.
2024-01-19 16:05:34 +01:00
kozabrada123
7b975e3c95
Mess w/ the tests to see if it really works
2024-01-19 15:53:24 +01:00
kozabrada123
1f5a6e5266
feat: switch safina_timer for tokio, fix sleep duration overflow in examples
2024-01-19 15:48:59 +01:00
kozabrada123
f97f9dafe5
fix error
2024-01-19 15:06:27 +01:00
kozabrada123
77b3a42b1c
feat: fix heartbeat time on WASM
2024-01-19 14:55:23 +01:00
bitfl0wer
a7c66ca823
Revert last commit
2023-12-17 22:16:53 +01:00
bitfl0wer
db476e94ee
Add MANAGE_ENCRYPTION permission
2023-12-17 20:47:52 +01:00
Flori
2fc94c84d5
merge backend branch into dev ( #454 )
2023-12-15 00:22:46 +01:00
bitfl0wer
1c4721a70f
Refactor instance creation
2023-12-15 00:10:33 +01:00
bitfl0wer
40d7da96cd
Update documentation and examples
2023-12-10 18:40:03 +01:00
bitfl0wer
39f7aa2a7a
Remove limited argument from Instance
2023-12-03 21:44:08 +01:00
bitfl0wer
bd1793fdb1
Make get_limits_config part of public api
2023-12-03 21:42:41 +01:00
bitfl0wer
0125c38bd0
Rename from_root_domain to from_root_url
2023-12-03 13:39:23 +01:00
bitfl0wer
b5ff7e3347
Add Instance::from_root_domain(), change documentation wording
2023-12-03 13:37:32 +01:00
bitfl0wer
c835bf1123
check for dbg! println! eprintln! in production code
2023-12-03 13:28:50 +01:00
bitfl0wer
410eef1edd
impl from_api_url
2023-12-03 13:16:34 +01:00
bitfl0wer
97fc99354a
add warning lint for usage of todo!()
2023-12-03 13:13:57 +01:00
bitfl0wer
c66cc9b16c
move WellKnownResponse to src/types/
2023-12-03 13:04:17 +01:00
bitfl0wer
25a09c3980
Create domains_config, create Domains struct
2023-12-03 13:04:02 +01:00
bitfl0wer
9bec639634
clean up imports
2023-12-03 12:51:34 +01:00
bitfl0wer
ceac04201c
impl from_root_domain for UrlBundle
2023-12-03 12:49:22 +01:00
bitfl0wer
99155d1e5b
impl From reqwest::Error for ChorusError
2023-12-03 12:49:07 +01:00
bitfl0wer
5f41f57e77
impl PartialEq for ChorusUser
2023-12-02 20:30:04 +01:00
bitfl0wer
67cbe5efeb
Mark code blocks as no-run
2023-12-02 17:44:24 +01:00
bitfl0wer
e6c09e44eb
fix import order
2023-12-02 17:36:36 +01:00
bitfl0wer
7ef61eb317
Add Default, Hash, etc. where needed
2023-12-02 17:35:47 +01:00
bitfl0wer
4cfeee8d86
Add README information into lib.rs
2023-11-24 22:21:57 +01:00
bitfl0wer
e06edada1e
Change: register/login no longer require ownership
...
Register/login used to require ownership of `instance`. This wasn't really necessary and has been changed.
2023-11-22 18:48:37 +01:00
bitfl0wer
022bf9f320
add wasm friendly task spawning
2023-11-22 14:23:36 +01:00
bitfl0wer
f8979b7feb
Remove 'handle', add wasm friendly task spawning
2023-11-22 14:23:33 +01:00
bitfl0wer
e629334f3f
Add FIXME comments for wasm compatibility
2023-11-21 17:10:19 +01:00
bitfl0wer
5bd4b627c5
Revert "Spawn local gateway task on wasm32"
...
This reverts commit 3c419e8310
.
2023-11-20 15:14:34 +01:00
bitfl0wer
509733bfb8
Revert "Refactor heartbeat task to support WebAssembly"
...
This reverts commit 8c2364b8d0
.
2023-11-20 15:14:28 +01:00
bitfl0wer
8c2364b8d0
Refactor heartbeat task to support WebAssembly
2023-11-20 14:57:45 +01:00
bitfl0wer
3c419e8310
Spawn local gateway task on wasm32
2023-11-20 14:47:13 +01:00
bitfl0wer
7956a0e3cb
Fix build on wasm32
2023-11-20 00:07:16 +01:00
bitfl0wer
1203e20358
Implement wasm Backend
2023-11-19 22:23:24 +01:00
bitfl0wer
8f0d8813eb
Better feature locking, add wasm.rs
2023-11-19 22:04:18 +01:00
bitfl0wer
73342d5dd7
reorganize files
2023-11-19 21:21:34 +01:00
bitfl0wer
6fd6bdcbbc
Give tungstenite types distinct names
2023-11-19 21:15:10 +01:00
bitfl0wer
b3e7876ccf
feature lock backend_tungstenite
2023-11-19 19:18:25 +01:00
bitfl0wer
a4d5ebb689
Resolve merge conflicts
2023-11-19 19:12:29 +01:00
bitfl0wer
79e70c43a2
Merge branch 'websockets-backend' into feature/wasm32-unknown
2023-11-19 18:35:35 +01:00
bitfl0wer
0e16e55d64
Fix references to heartbeat_thread_communicator
2023-11-19 18:27:49 +01:00
Vincent Junge
5bd8f32a6a
remove superfluous return
2023-11-19 17:47:48 +01:00
Vincent Junge
c0ce540da6
for got unwrap :3
2023-11-19 17:18:08 +01:00
Vincent Junge
dd9945068f
removed leftover type aliases
2023-11-19 17:15:00 +01:00
Vincent Junge
0f446f43b4
removed outdated comment
2023-11-19 17:13:52 +01:00
Vincent Junge
4f207d55d9
prepare for platform-dependant websockets backend
2023-11-19 17:08:53 +01:00
bitfl0wer
19f8403bcf
Make HBHandler<T,S> struct instead of trait
...
Make HeartbeatHandler a generic struct instead of a struct with a trait.
Reduces redundant code
2023-11-19 17:07:08 +01:00
bitfl0wer
70812c529a
Move Heartbeathandler code together
2023-11-19 16:44:38 +01:00
bitfl0wer
f4ae80fee9
temp: impl heartbeathandlercapable
2023-11-19 16:43:21 +01:00
bitfl0wer
b3ebdd69fc
Add TODO comment
2023-11-19 16:42:48 +01:00
bitfl0wer
50cd93aae1
Add kill send to WasmGateway
2023-11-19 16:42:05 +01:00
bitfl0wer
926a9fc90e
TEMP: Compile wasm dependencies&code per default
...
TODO: Check todos before merging into dev
2023-11-19 12:52:11 +01:00
bitfl0wer
9f45094bd9
Add todos
2023-11-19 12:51:13 +01:00
bitfl0wer
565a0cd745
Impl spawn() for wasm gateway
2023-11-19 12:51:07 +01:00
bitfl0wer
9ae07a15d7
start implementing wasm gateway
2023-11-19 01:31:04 +01:00
bitfl0wer
5aeba447af
Remove trait bound: From tungstenite::Message
2023-11-18 21:42:48 +01:00
bitfl0wer
a0d14ceaf9
Add MessageCapable trait implementation for
...
WsMessage
2023-11-18 20:02:50 +01:00
bitfl0wer
6ae715988d
Refactor WasmGateway struct and import statements
2023-11-18 20:02:45 +01:00
bitfl0wer
39e61a73e9
Remove is_error method from MessageCapable trait
2023-11-18 20:02:39 +01:00
bitfl0wer
f1e3058346
Update Gateway types based on target architecture
...
and feature
2023-11-18 20:02:34 +01:00
bitfl0wer
287b72c99c
Implement MessageCapable trait methods in gateway
...
default module
2023-11-18 20:02:28 +01:00
bitfl0wer
29efae385e
Apparently, the conditional dependency now works again. lol
2023-11-18 19:18:55 +01:00
bitfl0wer
862a846055
Rename `get_handle` to `spawn`
2023-11-18 19:07:56 +01:00
bitfl0wer
964d879e8f
Remove unused code
2023-11-18 18:50:47 +01:00
bitfl0wer
16bdd68d98
Fixed most errors, simplified new generic traits
2023-11-18 18:39:01 +01:00
bitfl0wer
ce7ff49ee4
checkpoint
2023-11-18 18:08:12 +01:00
bitfl0wer
3d3c61240c
pub use
2023-11-18 12:27:50 +01:00