bitfl0wer
bae3bc3aef
Write test to check basic functionality of UrlBundle::from_root_domain()
2023-12-03 13:29:38 +01:00
bitfl0wer
d28ccf209a
check for dbg! println! eprintln! in production code
2023-12-03 13:28:50 +01:00
bitfl0wer
dc263dbd5a
impl from_api_url
2023-12-03 13:16:34 +01:00
bitfl0wer
0e1f52edba
add warning lint for usage of todo!()
2023-12-03 13:13:57 +01:00
bitfl0wer
5792c61d09
move WellKnownResponse to src/types/
2023-12-03 13:04:17 +01:00
bitfl0wer
8224acf897
Create domains_config, create Domains struct
2023-12-03 13:04:02 +01:00
bitfl0wer
b6324173b5
clean up imports
2023-12-03 12:51:34 +01:00
bitfl0wer
a27a3626f4
impl from_root_domain for UrlBundle
2023-12-03 12:49:22 +01:00
bitfl0wer
4aa45b3841
impl From reqwest::Error for ChorusError
2023-12-03 12:49:07 +01:00
bitfl0wer
367c0a8ca5
impl PartialEq for ChorusUser
2023-12-02 20:30:04 +01:00
Flori
81eda95ac0
More derives and impls ( #448 )
...
Add some sensible implementations for PartialEq, Eq, etc. where I found
them to be necessary
2023-12-02 17:52:31 +01:00
bitfl0wer
734cbf8d30
Mark code blocks as no-run
2023-12-02 17:44:24 +01:00
bitfl0wer
2a40f804c1
fix import order
2023-12-02 17:36:36 +01:00
bitfl0wer
28637ef731
Add Default, Hash, etc. where needed
2023-12-02 17:35:47 +01:00
Flori
4786d0c767
Update README.md
2023-11-25 13:26:24 +01:00
bitfl0wer
c9501e6fad
Add README information into lib.rs
2023-11-24 22:21:57 +01:00
bitfl0wer
9336c7ac9b
Change text passages for better clarity
2023-11-24 21:37:30 +01:00
bitfl0wer
9d581441e8
Remove "prettyfyme" -> solved
2023-11-22 20:54:51 +01:00
Flori
371cf2efb3
Coverage, change register/login ( #447 )
...
Register and login, for some reason, required ownership of the
`Instance` object. This was not necessary and has been changed in this
PR. The PR also includes some extra tests, like logging in, logging in
with a token, etc.
2023-11-22 19:41:29 +01:00
bitfl0wer
05fd02a717
Add tests for coverage
2023-11-22 18:48:44 +01:00
bitfl0wer
7954e38643
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
72b954af00
Token login test
2023-11-22 18:38:23 +01:00
bitfl0wer
eb71a77a2c
Update reqwest dependency to version 0.11.22
2023-11-22 17:32:22 +01:00
Flori
a2e1567ecf
wasm support, bugfixes ( #446 )
...
This PR fixes #430 and enables full support for the
`wasm32-unknown-unknown` compilation target, making chorus the first(?)
Rust Discord-API implementation to support this target.
2023-11-22 17:30:20 +01:00
bitfl0wer
fe5acc6e10
Update branch filter for push event
2023-11-22 16:43:48 +01:00
bitfl0wer
b8b1a10c8b
Prevent CI from running twice on PR to main
2023-11-22 16:43:03 +01:00
bitfl0wer
e756999828
Add tests for GatewayMessage to increase coverage
2023-11-22 16:34:43 +01:00
bitfl0wer
8a5537606a
Bump version, explain why custom `reqwest`
2023-11-22 16:14:47 +01:00
bitfl0wer
f78af695d3
Update supported compilation target for Chorus to
...
versions 0.12.0 and up
2023-11-22 16:14:33 +01:00
Flori
b7d4ff2f06
Full wasm support with `wasm-bindgen-futures` ( #445 )
...
This PR applies the necessary patches to correctly pass (all but two)
tests when compiling for wasm32-unknown-unknown.
2 tests have been disabled for wasm at the moment: test
messages::search_messages and test messages::send_message_attachment.
These two tests currently rely on `std::fs` to grab a file to
send/search for using chorus. This is not possible on wasm32-unknown,
because this target does not have a Filesystem, and does not emulate on
either. These two tests should be patched, but this should be good
enough for now.
2023-11-22 16:09:43 +01:00
bitfl0wer
14bbeb328a
Split up wasm-tests into 3 seperate tests
2023-11-22 15:13:26 +01:00
bitfl0wer
889db105da
Update supported platforms in README
2023-11-22 15:01:51 +01:00
bitfl0wer
60419473e2
Add fixme note about tests requiring std::fs
2023-11-22 14:52:49 +01:00
bitfl0wer
8bf28012e4
Replace #[tokio::test] w/ wasm-ok macro calls
2023-11-22 14:39:32 +01:00
bitfl0wer
383f1cafea
Remove broken test code
2023-11-22 14:24:10 +01:00
bitfl0wer
1c7e318201
Add wasm-bindgen-futures
2023-11-22 14:24:01 +01:00
bitfl0wer
233a89c6c5
add wasm friendly task spawning
2023-11-22 14:23:36 +01:00
bitfl0wer
f63881dbd4
Remove 'handle', add wasm friendly task spawning
2023-11-22 14:23:33 +01:00
bitfl0wer
e6417d8ddd
Add build instructions, especially for wasm
2023-11-22 14:20:45 +01:00
bitfl0wer
9ddf8dde1d
Add FIXME comments for wasm compatibility
2023-11-21 17:10:19 +01:00
bitfl0wer
1ad93e2c01
Revert "Spawn local gateway task on wasm32"
...
This reverts commit 325c3d324b
.
2023-11-20 15:14:34 +01:00
bitfl0wer
0ff02447fc
Revert "Refactor heartbeat task to support WebAssembly"
...
This reverts commit f0a4fe62eb
.
2023-11-20 15:14:28 +01:00
bitfl0wer
f0a4fe62eb
Refactor heartbeat task to support WebAssembly
2023-11-20 14:57:45 +01:00
bitfl0wer
325c3d324b
Spawn local gateway task on wasm32
2023-11-20 14:47:13 +01:00
bitfl0wer
0acf3fb5f7
Fix formatting in test functions
2023-11-20 14:36:00 +01:00
bitfl0wer
42d512e4a1
Rename test function to
...
generate_general_configuration_schema_wasm
2023-11-20 14:22:00 +01:00
bitfl0wer
ebb414cc8c
Remove unnecessary code
2023-11-20 14:15:23 +01:00
bitfl0wer
8eee0c816c
remove all .await from wasm tests
2023-11-20 14:11:56 +01:00
bitfl0wer
c9858821ec
Merge branch 'dev' into feature/wasm32-unknown
2023-11-20 14:03:52 +01:00
bitfl0wer
4288455aec
Add tests for WASM
2023-11-20 14:03:06 +01:00