Skip to content

Sketch dependencies management #1321

Closed
Closed
@tarampampam

Description

@tarampampam

What is the best way to declare sketch dependencies? For example, my sketch uses Servo library:

#include <Arduino.h>
#include <Servo.h>

// ...

And when somebody wants to use this, it will be difficult for him to understand that you need to install the Servo library first. Describing all dependencies in a readme file or leaving comments with notices looks not enough clear.

Also, it would be great if there was a command flag like arduino-cli libs install --deps-file ./requirements.txt:

# https://github.com/arduino-libraries/Servo
Servo@1.1.7

Or possibility to define dependencies in a sketch.json file:

{
  "dependencies": {
    "Servo": "1.1.7"
  }
}

Or sketch.properties file:

dependencies=Servo@1.1.7, GyverOLED@1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: enhancementProposed improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions