Re:Zerocal – A Serverless Calendar App in Rust
by omn1 on Thursday October 06, 2022 @05:44PM
(#33114487)
Got it. The generator logic is in Rust yes. I could have written it in JavaScript as well but it was just easier for me to do that part in Rust. Should have mentioned that.
Of course you could host a static HTML with JS on Github pages, but Github pages also runs on a server. So to answer the original question, yes you do need some server for it unless you make it a command line app.
Re:Zerocal – A Serverless Calendar App in Rust
by ipaddr on Thursday October 06, 2022 @06:29PM
(#33114964)
You need a browser and a file. In your example you need a server to make the file and and a browser.
Re:Zerocal – A Serverless Calendar App in Rust
by omn1 on Thursday October 06, 2022 @06:38PM
(#33115032)
True, but for others to resolve the calendar entries you'd need to serve that file somewhere.
Re:Zerocal – A Serverless Calendar App in Rust
by stoplying1 on Friday October 07, 2022 @03:30PM
(#33125851)
/me glances at serverless in the title. Man, I would not want to have to technically design anything with you. You can't just say a thing is something and then say "oh well it's not actually but it could've been if I had made it entirely differently." ...
Re:Zerocal – A Serverless Calendar App in Rust
by aaaaaaaaaaab on Thursday October 06, 2022 @06:00PM
(#33114652)
You can serve a static HTML page from anywhere. GitHub pages, S3, maybe even Dropbox. Running a Rust binary is an order of magnitude more complex than that.
You could just host it with github pages.
Actually I'm confused why you're saying:
> The Rust part is just for the routing
Because it appears that you're generating the ics files in rust?