12 Commits

Author SHA1 Message Date
Ryan Leckey
66ceff37b7
feat(core): impl io::Serialize for a byte slice 2021-01-26 01:17:54 -08:00
Ryan Leckey
d07eabd201
feat(core): add IoStream::shutdown and IoStream::shutdown_async 2021-01-11 00:45:11 -08:00
Ryan Leckey
f748c70132
refactor(core): merge flush and flush_async into flush! 2021-01-11 00:12:53 -08:00
Ryan Leckey
6c8d68e9d0
refactor: marker traits for non-blocking <Async> vs <runtime::Blocking>
- enforce compile-time errors if you try to block on an async-only runtime
   or await a blocking runtime

 - remove viral HRTB for Streams

 - support UNIX streams
2021-01-10 19:23:04 -08:00
Ryan Leckey
769e8aa461
refactor: introduce io::Stream (blocking::io::Stream) to encapsulate needed IO methods
- rename sqlx::AsyncRuntime to sqlx::Async
 - don't set default runtime in traits
2021-01-10 10:45:29 -08:00
Ryan Leckey
16077216df
style: clippy 2021-01-08 16:39:12 -08:00
Ryan Leckey
91fa554063
chore(core): switch to (maintained) bytestring::ByteString from string::String<Bytes> 2021-01-08 15:26:39 -08:00
Ryan Leckey
e8ea502cbb
fix(core): blocking IO runtime compiles in isolation 2021-01-08 15:26:06 -08:00
Ryan Leckey
e24b1a0864
feat(core): support blocking access on BufStream 2021-01-06 23:03:57 -08:00
Ryan Leckey
7750168b80
wip(mysql): connect phase 2021-01-02 10:47:15 -08:00
Ryan Leckey
ac408e9a56
style: rustfmt 2021-01-01 12:35:47 -08:00
Ryan Leckey
55a8e7ba29
wip(mysql): connection/establish, WriteExt, BufExt, and settle on AsyncRuntime 2021-01-01 12:28:48 -08:00