notplants
notplants created pull request PeachCloud/peach-workspace#15 2021-11-04 22:04:56 +00:00
Upgrade peach-web to use rocket 0.5
notplants pushed to rocket0.5 at PeachCloud/peach-workspace 2021-11-04 22:01:18 +00:00
4021e17bbf Comment out failing test
4f6fb17069 Fix clippy warnings
64e083f516 Fix tests
b0cdd1ba5c Upgrade to 0.5 complete
b654d913ad Use rocket_dyn_templates
Compare 7 commits »
notplants created branch rocket0.5 in PeachCloud/peach-workspace 2021-11-04 22:01:18 +00:00
notplants commented on issue PeachCloud/peach-workspace#14 2021-11-04 12:28:43 +00:00
Reason for use of RawStr in peach-web?

Also hopefully these are behind authenticated routes, so if users are code-injecting themselves maybe thats their own perogative.

notplants commented on issue PeachCloud/peach-workspace#14 2021-11-04 12:25:29 +00:00
Reason for use of RawStr in peach-web?

So for now I will change these to type &str, and we can test it out a bit, and confirm its all still working.

I think we should be safe from code injection attacks, as long as we don't pass…

notplants commented on issue PeachCloud/peach-workspace#14 2021-11-04 12:19:44 +00:00
Reason for use of RawStr in peach-web?

@glyph from what I'm reading in the documentation, I think in rocket 0.5 its not the intention to use RawStr as a type for a route parameter, but rather to put validation and parsing into…

notplants commented on issue PeachCloud/peach-workspace#14 2021-11-04 12:14:33 +00:00
Reason for use of RawStr in peach-web?

(I wrote above comment at the same time as your comment and hadn't read it yet, btw)

notplants commented on issue PeachCloud/peach-workspace#14 2021-11-04 12:12:33 +00:00
Reason for use of RawStr in peach-web?

my initial guess is that rocket0.4 didn't handle utf-8 in query strings well?

In 0.5 documentatation they explicitly mention that they allow utf8-strings in query parameters (and all forms) now. …

notplants opened issue PeachCloud/peach-workspace#14 2021-11-04 11:41:20 +00:00
Reason for use of RawStr in peach-web?
notplants commented on issue PeachCloud/go-sbotcli-rs#1 2021-11-04 10:00:11 +00:00
Allow setting sbotcli path using environment variable

also for ergonomics, SbotcliApi object could just be called Sbot

notplants commented on issue PeachCloud/go-sbotcli-rs#1 2021-11-04 09:49:39 +00:00
Allow setting sbotcli path using environment variable

not sure if it makes more sense for a rust library to be configured via env variables, or explicitly via instantiating an object with arguments, or both.

perhaps with an object is more modular,…

notplants commented on issue PeachCloud/go-sbotcli-rs#1 2021-11-04 09:32:37 +00:00
Allow setting sbotcli path using environment variable

could also consider to do an object-oriented pattern, with something like:

  • a function to instantiate an SbotcliApi object (with optional arguments to pass flags like sbotcli_path, and working…
notplants commented on issue PeachCloud/go-sbotcli-rs#1 2021-11-04 09:24:04 +00:00
Allow setting sbotcli path using environment variable

^^ sounds good.

As I mentioned in this comment

/// currently go-sbotcli determines where the working directory is
,…

notplants deleted branch routes-refactor from PeachCloud/peach-workspace 2021-11-03 10:24:36 +00:00
notplants merged pull request PeachCloud/peach-workspace#12 2021-11-03 10:24:28 +00:00
Refactor routes into functional groupings
notplants pushed to main at PeachCloud/peach-workspace 2021-11-03 10:24:28 +00:00
1aa5821adf Merge pull request 'Refactor routes into functional groupings' (#12) from routes-refactor into main
090415d875 update main lockfile
b70e1c9c08 remove crate-level lockfiles
5df88b81ce documentation tidy-up
a48838ad1d All tests are passing
Compare 8 commits »
notplants commented on issue PeachCloud/peach-workspace#13 2021-11-02 12:26:46 +00:00
Establishing stylistic conventions

All points sounds good to me.

The third style, hmmm.. interestingly in my IDE, it only shows up bold when a # is used inside of /// (not a //).

Ideally would also like to avoid a pattern…

notplants created pull request PeachCloud/peach-workspace#12 2021-11-02 10:40:26 +00:00
Refactor routes into functional groupings
notplants commented on issue PeachCloud/peach-workspace#9 2021-11-02 09:05:18 +00:00
Optimise compile times and binary sizes

in general I think we should also value "developer efficiency" (ease of working with, understanding and making changes to the code) for the patterns we use, in addition to "compile time and binary…