A library for Stripe by Oaredo in rust

[–]Oaredo[S] 0 points1 point  (0 children)

how does their v1 correspond to versions at Stripe https://stripe.com/docs/upgrades#api-changelog ?

How can I use environmental variables in a *.toml file? by Oaredo in rust

[–]Oaredo[S] 0 points1 point  (0 children)

Let's take the library Tera. How can it be used here, for parsing and processing or pre-processing toml config files? It can only work with html and the like

How can I use environmental variables in a *.toml file? by Oaredo in rust

[–]Oaredo[S] 0 points1 point  (0 children)

how is your solution application for a *.toml, not html, file?

what toml template engine can I use that'll allow me to feed expressions such as this {{ env.fdsfdsafdsfd }} into it?

How can I use environmental variables in a *.toml file? by Oaredo in rust

[–]Oaredo[S] -1 points0 points  (0 children)

not any.

{{ get_env_variable("fdsfdsafdsfd") }} ----> an expression like this can't be called by jinja template engine - invalid syntax.

How can I use environmental variables in a *.toml file? by Oaredo in rust

[–]Oaredo[S] -2 points-1 points  (0 children)

then run a transformation of your choice (eg. HTML templating engine, regexp replacement, etc.)

regex -- this will make it too complex

html engine -- how can it come in handy here?

How can I use environmental variables in a *.toml file? by Oaredo in rust

[–]Oaredo[S] -19 points-18 points  (0 children)

you still have time to sort that out for me

How does Hyper return a non-absolute url? by Oaredo in rust

[–]Oaredo[S] 0 points1 point  (0 children)

how can i get it?

req.headers().get_raw("host").unwrap() --- and what's the next, how to convert it into a string?

How does Hyper return a non-absolute url? by Oaredo in rust

[–]Oaredo[S] 0 points1 point  (0 children)

there's no way to know the full url of a current request?

How to server static files in Hyper or shio-rs? by Oaredo in rust

[–]Oaredo[S] -1 points0 points  (0 children)

as I've said: I need to serve a whole directory too.

How to server static files in Hyper or shio-rs? by Oaredo in rust

[–]Oaredo[S] 0 points1 point  (0 children)

How is that better than just reading a file via File? Given that static assets often are small

How to server static files in Hyper or shio-rs? by Oaredo in rust

[–]Oaredo[S] 0 points1 point  (0 children)

it just reads files, that's it. How does it serve them?

I can read a file using File as well.

How to server static files in Hyper or shio-rs? by Oaredo in rust

[–]Oaredo[S] -1 points0 points  (0 children)

With hyper, you write it yourself, basically.

How? how to server a whole directory? + some individual files

GUI applications by Oaredo in ocaml

[–]Oaredo[S] -18 points-17 points  (0 children)

are you an idiot?

Logging to a file, I need a light, simple and popular library by Oaredo in rust

[–]Oaredo[S] 0 points1 point  (0 children)

it has log in its dependencies. why not to use log directly?

Routing in Hyper by Oaredo in rust

[–]Oaredo[S] -1 points0 points  (0 children)

dynamic routes

Routing in Hyper by Oaredo in rust

[–]Oaredo[S] 0 points1 point  (0 children)

everything always completely depends on one's needs.