Commit Graph

1342 Commits

Author SHA1 Message Date
kozabrada123 98217a7f3c feat: add untested sending & asbtract nonce generation 2023-12-16 20:19:09 +01:00
kozabrada123 3789596c19 feat: add ssrc definition (op 12) 2023-12-16 15:55:29 +01:00
kozabrada123 d135e0a192 chore: formatting 2023-12-16 15:31:48 +01:00
kozabrada123 b9cf17ef3b feat: decryption? 2023-12-16 13:46:29 +01:00
kozabrada123 d55988bb83 feat: add VoiceData reference to UdpHandler 2023-12-16 12:20:02 +01:00
kozabrada123 cc51c59476 feat: add VoiceData struct 2023-12-16 12:19:19 +01:00
kozabrada123 b013666bfa chore: yes clippy, that is indeed an unneeded return statement 2023-12-16 11:38:40 +01:00
kozabrada123 2203b5ab96 fix: attempt to fix failing wasm build 2023-12-16 11:25:33 +01:00
kozabrada123 9a86282c9b chore: clippy + other misc updates 2023-12-16 11:23:03 +01:00
kozabrada123 4ee96f53d5 chore: merge main 2023-12-16 10:30:01 +01:00
kozabrada123 8c7a9b4c7e Add UdpHandle 2023-12-16 09:40:47 +01:00
kozabrada123 1e0d92ed9a chore: rename events/webrtc to events/voice_gateway 2023-12-16 09:36:40 +01:00
Flori 2fc94c84d5 merge backend branch into dev (#454) 2023-12-15 00:22:46 +01:00
Flori e6c627afbc Update docs (#453) 2023-12-10 18:51:32 +01:00
bitfl0wer 40d7da96cd Update documentation and examples 2023-12-10 18:40:03 +01:00
bitfl0wer 9ca29c6560 Update cargo lock 2023-12-10 18:37:38 +01:00
bitfl0wer b607dee673 Merge branch 'dev' 2023-12-03 22:37:28 +01:00
bitfl0wer f74a8b2068 Bump version 2023-12-03 22:35:45 +01:00
Flori 266a3d1dd3 QoL Updates (#452)
- Make register and login not take an instance by ownership
- Add README information to `lib.rs`
- Add more derives to ChorusUser and Instance
- Impl From reqwest::Error for ChorusError
- Add support for .well-known #449 
- Remove "limited: bool" as an argument for `Instance::new` in favour of
dynamic instance limit checking #450
2023-12-03 22:31:21 +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 f5774ae047 Remove "limited" parameter 2023-12-03 21:34:44 +01:00
Flori 2c44232b05 Get URLs from .well-known (#451)
Closes #449.

+ `Instance::from_root_url(root_url: &str, limited: bool)`: Creates a
new Instance by trying to get the relevant instance urls (UrlBundle)
from a root url. Shorthand for
`Instance::new(UrlBundle::from_root_domain(root_domain).await?)`
+ `UrlBundle::from_root_url(url: &str)`: Performs a few HTTP requests to
try and retrieve a UrlBundle from an instance's root URL. The method
tries to retrieve the UrlBundle via these three strategies, in order:
- GET: $url/.well-known/spacebar -> Retrieve UrlBundle via
$wellknownurl/api/policies/instance/domains
    - GET: $url/api/policies/instance/domains
    - GET: $url/policies/instance/domains
    
The URL stored at .well-known/spacebar is the instance's API endpoint.
The API stores the CDN and WSS URLs under the
$api/policies/instance/domains endpoint. If all three of the above
approaches fail, it is very likely that the instance is misconfigured,
unreachable, or that a wrong URL was provided.
+ Add clippy warnings for: `clippy::todo,
    clippy::unimplemented,
    clippy::dbg_macro,
    clippy::print_stdout,
    clippy::print_stderr`
2023-12-03 16:05:58 +01:00
bitfl0wer 2c0f71793d wasm-safari CI seems to be bugged - disabling for now 2023-12-03 15:57:03 +01:00
bitfl0wer 3a4fd470df Try giving macos-safari its own cache key to fix CI 2023-12-03 15:06:09 +01:00
bitfl0wer c0004d732c Change macOS Safari test strategy to no-fail-fast 2023-12-03 14:18:14 +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 1a52975dbd Add test if an example well-known response gets parsed correctly. 2023-12-03 13:33:24 +01:00
bitfl0wer b246e08aca Write test to check basic functionality of UrlBundle::from_root_domain() 2023-12-03 13:29:38 +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
Flori 741b6d6978 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 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
Flori 73772ed43e Update README.md 2023-11-25 13:26:24 +01:00
bitfl0wer 4cfeee8d86 Add README information into lib.rs 2023-11-24 22:21:57 +01:00
bitfl0wer 9a84e7109f Change text passages for better clarity 2023-11-24 21:37:30 +01:00
bitfl0wer 83b8d7a6cd Remove "prettyfyme" -> solved 2023-11-22 20:54:51 +01:00
Flori 84981544ef 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
kozabrada123 5720316590 Merge with latest dev 2023-11-22 19:39:53 +01:00
kozabrada123 42c77b695e feat: add voice_media_sink_wants
(comitting uncommited changes to merge)
2023-11-22 19:27:46 +01:00