Uploaded image for project: 'Libmongocrypt'
  1. Libmongocrypt
  2. MONGOCRYPT-453

Update API to indicate constness

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Unknown Unknown
    • None
    • None
    • None

    Description

      In developing the Rust wrappers for libmongocrypt, we ran into the issue that many functions take "morally const" arguments (mongocrypt_binary_t as input parameters, mongocrypt_ctx on accessor methods like mongocrypt_ctx_state, etc.). Ideally, those could reflect that quality by taking those arguments as const pointers; this would be a useful bit of additional inline documentation, and would allow us to be more confident in the safety of the Rust wrapper.

      Attachments

        Activity

          People

            Unassigned Unassigned
            abraham.egnor@mongodb.com Abraham Egnor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: