Hello. I am confused about how to use nimble. I want to create a project that
has a builds a binary file and at the same time it has a module I want to
share. For example, the structure would be:
calculator # root
├── bin
├── calculator
│ ├── calculator.nim
│ ├── calculatorpkg
│ ├── datastructures
│ │ └── stack.nim # I want to make this public, so users that install
`calculator`, should have access to stack.nim in their system
│ └── private
│ └── utils.nim # As opposed to stack.nim, I don't want to make this
public
├── calculator.nimble
├── docs
├── README
├── src
│ └── calculator.nim
└── tests
├── test1.nim
└── test1.nims
Now every time I use nimble init calculator it creates a src/ directory. So I
went ahead and made my own .nimble file:
# Package
version = "0.1.0"
author = "Anonymous"
description = "A new awesome nimble package"
license = "MIT"
srcDir = "calculator"
bin = @["calculator"]
# Dependencies
requires "nim >= 0.18.0"
Is this a common project structure for a hybrid project?