Comments (2)
It's likely that you are using different may versions
from hyper, it uses may = { git = "https://github.com/Xudong-Huang/may.git" }
but from your toml: may = "^0.2.0"
different may version can't coexist, event the same type has different TypeId
so the panic triggers.
And I never test may version hyper client, but it should be work.
And I can't setup a proper linux box for relm
, when I run the example, i got following errors
$ cargo run --example=http
warning: unused manifest key: metadata
Finished dev [unoptimized + debuginfo] target(s) in 3.62 secs
Running `/home/ubuntu/Project/rust/relm/target/debug/examples/http`
(.:8530): Gtk-CRITICAL **: _gtk_style_animation_is_static: assertion 'GTK_IS_STYLE_ANIMATION (animation)' failed
[1] 8530 segmentation fault (core dumped) cargo run --example=http
cargo run --example=http 1.02s user 0.92s system 10% cpu 17.640 total
P.S.
Hyper is not optimized for coroutine usage. Maybe you can look at https://github.com/rust-may/may_http.
from may.
Ok, it works if I use the git
version.
Thank you.
(I knew about may-http
but could it didn't supported the client yesterday.)
from may.
Related Issues (20)
- support cancel feature gate
- macro select! : Polling a channel that already contained data may not trigger recv HOT 3
- Question about coroutine HOT 2
- `go!` macro allows its arguments to do `unsafe` operations. HOT 1
- No `peek` implementation for `net::TcpStream` HOT 2
- How can May be used for shared-nothing architecture? HOT 3
- The go! macro is unsound HOT 3
- Unsound problems in `may_queue` crate
- Why is the http example so much slower when simplified?
- Examples don't compile HOT 2
- about performace.md The description is unfair HOT 3
- 建议参考ants,整个协程池
- `may_http`耗时不符合预期 HOT 5
- 建议参考libco,hook系统函数,减少改造成本 HOT 1
- 问下如何正确地hook系统函数?
- support linux io_uring HOT 1
- unify thread and coroutine io handling
- split io read and write event HOT 1
- How does it actually work
- linux: file descriptor leak in epoll code HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from may.