Skip to content
Snippets Groups Projects
  1. May 04, 2022
    • Ian Jackson's avatar
      GuardUsage: restrictions Add semver note · c84d6091
      Ian Jackson authored
      c84d6091
    • Ian Jackson's avatar
      GuardUsage: restrictions: Use list builder · 015db3d7
      Ian Jackson authored
      Although these do not appear in the config, it does have a builder.
      It seems sensible to get rid of this ad-hoc list manipulation site,
      and replace it with our standard list builder API.
      
      define_list_builder_helper requires that the builder element type be
      Deserialize.  Currently GuardUsageRestriction is a transparent, public
      enum, so we aren't really exposing anything.
      
      We could introduce GuardUsageRestrictionBuilder now, but
      since it's not in the config and thereofore only in the public API of
      the lower crates, we can definitely put that off.
      015db3d7
    • Ian Jackson's avatar
      Merge branch 'list-builder-rework' into 'main' · ab979b0b
      Ian Jackson authored
      Replace list builder API and do not expose ThingListBuilder as part of config API
      
      See merge request tpo/core/arti!481
      ab979b0b
    • Nick Mathewson's avatar
      Merge branch 'fix-config-version' into 'main' · 28030c6c
      Nick Mathewson authored
      Fix config version
      
      See merge request tpo/core/arti!482
      28030c6c
    • Ian Jackson's avatar
      tor-dirmgr: make DownloadScheduleBuilder public · 9214eb5d
      Ian Jackson authored
      This type was returned by the public DownloadSchedule::builder
      function.  But the only thing that seems to have noticed that the type
      name itself wasn't exported, was rustdoc.  Hmmm.
      9214eb5d
    • Nick Mathewson's avatar
      Fix typos · d0330d2c
      Nick Mathewson authored
      d0330d2c
    • Ian Jackson's avatar
      Change builder list API · 4bca9127
      Ian Jackson authored
      The new API is (roughly) as discussed in
        tpo/core/arti#451
      
      This is quite a large commit and it is not convenient to split it up.
      It contains the following changes:
      
       * Redo the list builder and accessor macros implemnetation,
         including docs and tests.
      
       * Change uses of define_list_config_builder.  In each case:
         - Move the docs about the default value to the containing field.
         - Remove the other docs (which were just recapitulations, and
           are now not needed since the ListBuilder is no longer public).
         - Rewmove or replace `pub` in the define_list_builder_helper call,
           so that the builder is no longer public.
         - Change the main macro call site to use define_list_builder_helper.
         - Add a call to define_list_builder_accessors.
      
       * Make the module `list_builder` pub so that we have somewhere to
         put the overview documentation.
      
       * Consequential changes:
         - Change `outer.inner().replace(X)` to `outer.set_inner(X)`
         - Consequential changes to imports (`use` statements).
      4bca9127
    • Ian Jackson's avatar
      Introduce ThingListBuilder::default_list · 71911d29
      Ian Jackson authored
      This removes a caveat from the API and will be convenient for what is
      coming.
      71911d29
    • Ian Jackson's avatar
      Add dependency on paste crate · 8ad4735d
      Ian Jackson authored
      The list accessor macro is going to want this.
      8ad4735d
    • Ian Jackson's avatar
      Rename NetworkConfig.fallback_caches · ff624f60
      Ian Jackson authored
      Previously this field was differently named to its serde and to its
      accessors.  We are about to introduce a macro_rules macro which will
      provide list accessors and we don't want that macro to have a field
      renaming feature.
      
      So stop renaming the field.
      ff624f60
    • Ian Jackson's avatar
      Fix config version · f4088a75
      Ian Jackson authored
      This matches Cargo.lock.  I suspect a mismerge in arti!478.
      f4088a75
  2. May 03, 2022
  3. Apr 29, 2022
  4. Apr 28, 2022
Loading