dry-afternoon-92118
05/08/2023, 3:22 PMmicroscopic-island-86582
05/08/2023, 3:25 PMagreeable-painting-48846
05/08/2023, 3:44 PMmicroscopic-island-86582
05/08/2023, 3:50 PMagreeable-painting-48846
05/08/2023, 4:22 PMcareful-iron-7275
05/08/2023, 4:37 PMbusy-vr-65076
05/08/2023, 4:41 PMcareful-iron-7275
05/08/2023, 4:45 PMbusy-vr-65076
05/08/2023, 4:48 PMagreeable-painting-48846
05/08/2023, 6:15 PMagreeable-painting-48846
05/08/2023, 6:18 PMcareful-iron-7275
05/08/2023, 6:28 PMhttp
crate types for libraries and for binary projects, well, most binary projects either run on native platforms or in WASM; it's rather rare that you need the compatibility in that area.
I think alternative HTTP clients, even if they are built on hyper, too, are important. Each client has its own niche most of the time.
reqwest, for example, isn't a client I personally would use to load data from unknown servers (on native platforms that is, on WASM it uses fetch
which doesn't have this issue), because reqwest doesn't have a way to restrict the body size (https://github.com/seanmonstar/reqwest/issues/1234).
That's fine for APIs where you trust the host you are connecting to but for, for example, crawlers? No thanks.agreeable-painting-48846
05/08/2023, 6:30 PMmicroscopic-island-86582
05/09/2023, 2:46 PMcold-ambulance-26077
05/21/2023, 8:22 PMlate-sandwich-93145
05/24/2023, 5:02 PMagreeable-painting-48846
05/24/2023, 5:13 PMtokio::select!()
can do this fairly well - the custom service docs goes over a way you can use it: https://docs.shuttle.rs/tutorials/custom-servicelate-sandwich-93145
05/24/2023, 5:15 PMlate-sandwich-93145
05/24/2023, 6:37 PMastonishing-laptop-19143
05/24/2023, 10:56 PMopenssl = "0.10.52"
to my Cargo.toml so I can use tokio-postgres and postgres-openssl. This works fine when I do cargo shuttle run and host locally but once I deploy I run into websocket errors.careful-iron-7275
05/24/2023, 10:59 PMastonishing-laptop-19143
05/24/2023, 11:02 PMhttps://cdn.discordapp.com/attachments/953991447089127456/1111066628260626482/image.png▾
agreeable-painting-48846
05/24/2023, 11:04 PMcargo shuttle project restart
to restart the container then deploy againastonishing-laptop-19143
05/24/2023, 11:11 PMagreeable-painting-48846
05/24/2023, 11:15 PMlate-sandwich-93145
05/25/2023, 10:19 AMagreeable-painting-48846
05/25/2023, 10:23 AMrefined-ram-93026
05/27/2023, 11:54 AM