Readme: Try to add a licensing summary. (#456)

This commit is contained in:
Christian Kamm 2023-02-15 11:03:29 +01:00 committed by GitHub
parent a53e1e6daa
commit 722c5ff10b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

View File

@ -2,6 +2,8 @@ _work in progress_
### Tooling
- Consider enabling the `enable-gpl` and `test-bpf` features in your rust ide to get sensible tooling for all parts of the source code.
### Code style
### Testing

View File

@ -1,5 +1,24 @@
_work in progress_
## License
See the LICENSE file.
The majority of this repo is MIT licensed, but some parts needed for compiling
the solana program are under GPL.
All GPL code is gated behind the `enable-gpl` feature. If you use the `mango-v4`
crate as a dependency with the `client` or `cpi` features, you use only MIT
parts of it.
The intention is for you to be able to depend on the `mango-v4` crate for
building closed-source tools and integrations, including other solana programs
that call into the mango program.
But deriving a solana program with similar functionality to the mango program
from this codebase would require the changes and improvements to stay publicly
available under GPL.
## Development
See DEVELOPING.md