mbox series

[0/2] crate.io data access policy (user agent)

Message ID 20260428140325.3948844-1-johanam@axis.com
Headers show
Series crate.io data access policy (user agent) | expand

Message

Johan Anderholm April 28, 2026, 2:03 p.m. UTC
These patches addresses the part about setting an application specific
user agent when making API calls to crates.io:

https://crates.io/data-access#api

I'm a little bit hesitant on the first patch, as that changes how checkstatus
identifies slightly by adding contact information. Another option would be
to leave it intact except for the crate fetcher. But I feel this is introducing
more complexity in favor of, quite possibly excessive, defensiveness.

A third option is to leave out the contact information altogether and just use
bitbake/<version> since the request about contact information is only
"strongly suggested".

Johan Anderholm (2):
  fetch2/wget: allow identifying with a bitbake user agent
  fetch2/crate: identify as bitbake to crates.io

 lib/bb/fetch2/crate.py | 18 +++++++++++++++++-
 lib/bb/fetch2/wget.py  | 19 ++++++++++++++++++-
 2 files changed, 35 insertions(+), 2 deletions(-)