Skip to content

Examples should not use temp_dir #1045

Closed

Description

@LLFourn

Things like database location this should be passed in on the command line. This creates a permanent file in the user's temp dir we never clean up. See:

let db = Store::<bdk::wallet::ChangeSet>::new_from_path(DB_MAGIC.as_bytes(), db_path)?;

Activity

  1. added this to the 1.0.0-beta.0 milestone on Nov 13, 2023
  2. notmandatory commented on Nov 13, 2023

    @notmandatory
    Contributor

    Put this one in the beta.0 milestone since it's not a core functional change.

  3. added
    documentation
    on Mar 18, 2024
  4. ValuedMammal commented on Aug 7, 2024

    @ValuedMammal
    Contributor

    I think this can be closed now that all example crates are fixed to no longer use std::env::temp_dir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions