Structure
#353
Replies: 1 comment
-
I don't think we need this discussion |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
You can
run
andbuild
program like this:By default if you didn't provide
path
argument current directory is used. So runningneva run
is the same asneva run .
orneva run ./
. Same goes forneva build
.You pass path to package, not file. Package is a directory that
*.neva
filesspace.yml
at the root)There's 2 kind of packages: library package and executable package. Difference is that
pub
entity and must not containmain
componentmain
component and must not containpub
entitiesExecutable packages usually located in
cmd
directory like thismain
component in executable package must have (implement) specific interface that isI.e one
sig
inport ofany
type with no outports. Note that normally we would use generic<T>(sig T)
but main component, being root node of the program's network that is triggered by runtime, have no outports and no logic must depend on sig's type.(Please note #225 where we talk about this interface. It might be changed)
Beta Was this translation helpful? Give feedback.
All reactions