Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Aug 12 10:02
    QSchulz opened #81
  • Aug 11 14:57
    willemneal synchronize #80
  • Aug 11 14:56
    willemneal opened #80
  • Aug 10 22:50

    s-panferov on master

    fix(json_schema): Replace depre… (compare)

  • Aug 10 22:50
    s-panferov closed #79
  • Aug 08 14:27
    konradgraefe opened #79
  • May 04 08:14
    lu-zero opened #78
  • Jan 19 02:12
    erickt synchronize #77
  • Jan 19 02:08
    erickt synchronize #77
  • Jan 19 02:08
    erickt synchronize #76
  • Jan 19 02:05
    erickt opened #77
  • Jan 19 02:03
    erickt opened #76
  • Oct 31 2021 22:23
    swarkentin commented #73
  • Oct 31 2021 22:22
    swarkentin synchronize #75
  • Oct 31 2021 22:20
    swarkentin edited #75
  • Oct 31 2021 22:19
    swarkentin opened #75
  • Sep 15 2021 05:34
    AutschHa opened #74
  • Jul 02 2021 07:18
    Jzow closed #96
  • Jun 09 2021 06:21
    robot-head opened #73
  • May 20 2021 05:18
    Jzow opened #96
@s-panferov rustless looks incredible man!! Thanks for making it!!
Lukas Kalbertodt
Hi I have a stupid question: How should one use versioning? I mean... if I have two version, should I create two Apis with Api::build (for example) and specify different versions in the Api builder? I'm really unsure...
Stanislav Panferov
@LukasKalbertodt if you have two versions you can mount two APIs to the Root API.
And yes, you need to create two separate API's with different versions.
Lukas Kalbertodt
@s-panferov Ok thanks! Being curious: So when using Versioning::Path, there is no difference between using two Apis and using two Namespaces, right? But yeah thanks and keep up the great work ;-)
Stanislav Panferov
There is a semantic difference between them. And also it gives you the way to define different error-handling logic at an API level using error_formatter
Stanislav Panferov
@LukasKalbertodt I will appreciate it if you send me your feedback about Rustless after some time of usage.
Lukas Kalbertodt
@s-panferov I haven't really looked at error handling yet... I will absolutely send you some feedback!
Milan van Schaik
Hey guys! I'm trying to get started with rustless but I get some errors. I'm new in the Rust world but it looks really interesting. Do I get the errors because I run a 'too new' version of Rust? rustless/rustless#37
Stanislav Panferov
There are some errors in rustless deps now.
Lukas Kalbertodt
Does rustless build with beta?
Lukas Kalbertodt
Well ... it does not. It doesn't build with the nightly either... I think I'll try to fix it..
Lukas Kalbertodt
I gave up (I actually got valico compiling with nightly, but the tests are failing, if anyone is interested). Please fix rustless for beta ASAP _
Håkon Lerring
i'm experiencing some issues with response time jitter when running a simple serial benchmark
99% of the requests run with 0 ms response times but the last 1% has > 10 seconds response time
sometimes i'm just getting a timeout
Stanislav Panferov
Could you pleas publish the code?
Mike Lubinets

Hello. Please guide me how to add cookies to server's response.
I trying to add cookies as it's done in "Secure Example" in GitHub README.md

endpoint.handle(|mut client, params| {
        let has_cookies = match client.request.find_cookie_jar() {
            Some(_) => true,
            None => false

        let cookies = if has_cookies {
            println!("Found cookies");
        } else {
            println!("Creating new cookie jar");

        let signed_cookies = cookies.signed();
        let token_cookie = Cookie::new("token".to_owned(), 

    client.text("wrote cookies".to_owned())

When I run this code and try to get cookies with curl, I cannot see any :(

curl -d 'login_data' http://localhost:8080/api/signin -v  --cookie_jar cookies
*   Trying
* Connected to localhost ( port 8080 (#0)
> POST /api/signin HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.50.2
> Accept: */*
> Content-Type:application/json
> Content-Length: 38
* upload completely sent off: 38 out of 38 bytes
< HTTP/1.1 200 OK
< Date: Wed, 02 Nov 2016 14:39:17 GMT
< Transfer-Encoding: chunked
< Content-Type: text/plain
* Curl_http_done: called premature == 0
* Connection #0 to host localhost left intact
wrote cookies
> cat cookies
hey guys
looking for how to enable CORS using rustless/iron/hyper any direction ?
@s-panferov ping
i'm running example from v0.9.0 and this line https://github.com/rustless/rustless/blob/master/examples/simple.rs#L148 is not running probabbly because it's blocked

however when i run

    fn hello_world(request: &mut Request) -> IronResult<Response> {           
        Ok(Response::with((iron::status::Ok, "hello")))                       
    let http_socket = "localhost:8000";                                       
    let _server = Iron::new(hello_world).http(http_socket).unwrap();          
    println!("serving http on {}", http_socket);

this works

could you tell me what's going on?
Michael Alexander
Hi all, absolutely fantastic framework! Am currently looking for advice on error handling though.
At the moment, whenever there is an internal error in my handlers, I wrap the error in ErrorResult and return that (using try! / ?), but it doesn't appear the errors get output anywhere
Is there some idiomatic way to handle internal errors in Rustless? I had trouble seeing examples in the sample code or docs, any advice would be hugely appreciated.
Also keen to hear about logging in general, would be great to see more verbose access logs output from the server process in development too.
Michael Alexander
To answer my own question: you need to actually include the log crate in your project for errors to be outputted in the server process, appears it might be an iron requirement. Might be worth adding to the docs if it isn't already.
Gustavo de la Cruz Tovar
Could you provide a Cargo.toml for basic example, please
Hey, I'm wondering what the state of rustless is, I'm especially interested in valico. It hasn't been updated in a while, and doesn't reflect the changes to Serde
I've rewritten valico to use serde 1.0 and dropped jsonway as a dep. Tests pass. What would be a good way to publish this versoin of valico on crates.io?
Giancarlos Salas
rustless is dead.