Skip to content

Commit ecef257

Browse files
committed
Add scala to doc and update git ignores.
1 parent f7c8e82 commit ecef257

File tree

5 files changed

+290
-0
lines changed

5 files changed

+290
-0
lines changed

docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ Ports are the frontends to the **METACALL C API** from other languages. They all
141141
| [Go](https://golang.org/) | [CGO](https://golang.org/cmd/cgo/) | **1.x** |
142142
| [D](https://dlang.org/) | [DMD](https://wiki.dlang.org/DMD) | **2.x** |
143143
| [Rust](https://www.rust-lang.org/) | **** | **>= 1.47.0** |
144+
| [Scala](https://www.scala-lang.org/) | [JVM](https://en.wikipedia.org/wiki/Java_virtual_machine) | **>= 2.13.x** |
144145

145146
## 3. Use Cases
146147

source/ports/scala_port/.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,25 @@ target/
33
.vscode/
44
.bsp/
55
.metals/
6+
7+
*.class
68
*.log
9+
10+
# sbt specific
11+
.cache/
12+
.history/
13+
.lib/
14+
dist/*
15+
target/
16+
lib_managed/
17+
src_managed/
18+
project/boot/
19+
project/plugins/project/
20+
21+
# Scala-IDE specific
22+
.scala_dependencies
23+
.worksheet
24+
.idea
25+
26+
# Disable from parent gitignore
27+
!build.sbt

source/ports/scala_port/build.sbt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name := "metacall-scala-port"
2+
3+
version := "0.1"
4+
5+
scalaVersion := "2.13.4"
6+
7+
libraryDependencies += "net.java.dev.jna" % "jna" % "5.6.0"
8+
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.3" % Test
Lines changed: 260 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,260 @@
1+
# Python
2+
3+
# Byte-compiled / optimized / DLL files
4+
__pycache__/
5+
*.py[cod]
6+
*$py.class
7+
8+
# C extensions
9+
*.so
10+
11+
# Distribution / packaging
12+
.Python
13+
build/
14+
develop-eggs/
15+
dist/
16+
downloads/
17+
eggs/
18+
.eggs/
19+
lib/
20+
lib64/
21+
parts/
22+
sdist/
23+
var/
24+
wheels/
25+
share/python-wheels/
26+
*.egg-info/
27+
.installed.cfg
28+
*.egg
29+
MANIFEST
30+
31+
# PyInstaller
32+
# Usually these files are written by a python script from a template
33+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
34+
*.manifest
35+
*.spec
36+
37+
# Installer logs
38+
pip-log.txt
39+
pip-delete-this-directory.txt
40+
41+
# Unit test / coverage reports
42+
htmlcov/
43+
.tox/
44+
.nox/
45+
.coverage
46+
.coverage.*
47+
.cache
48+
nosetests.xml
49+
coverage.xml
50+
*.cover
51+
*.py,cover
52+
.hypothesis/
53+
.pytest_cache/
54+
cover/
55+
56+
# Translations
57+
*.mo
58+
*.pot
59+
60+
# Django stuff:
61+
*.log
62+
local_settings.py
63+
db.sqlite3
64+
db.sqlite3-journal
65+
66+
# Flask stuff:
67+
instance/
68+
.webassets-cache
69+
70+
# Scrapy stuff:
71+
.scrapy
72+
73+
# Sphinx documentation
74+
docs/_build/
75+
76+
# PyBuilder
77+
.pybuilder/
78+
target/
79+
80+
# Jupyter Notebook
81+
.ipynb_checkpoints
82+
83+
# IPython
84+
profile_default/
85+
ipython_config.py
86+
87+
# pyenv
88+
# For a library or package, you might want to ignore these files since the code is
89+
# intended to run in multiple environments; otherwise, check them in:
90+
# .python-version
91+
92+
# pipenv
93+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
94+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
95+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
96+
# install all needed dependencies.
97+
#Pipfile.lock
98+
99+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
100+
__pypackages__/
101+
102+
# Celery stuff
103+
celerybeat-schedule
104+
celerybeat.pid
105+
106+
# SageMath parsed files
107+
*.sage.py
108+
109+
# Environments
110+
.env
111+
.venv
112+
env/
113+
venv/
114+
ENV/
115+
env.bak/
116+
venv.bak/
117+
118+
# Spyder project settings
119+
.spyderproject
120+
.spyproject
121+
122+
# Rope project settings
123+
.ropeproject
124+
125+
# mkdocs documentation
126+
/site
127+
128+
# mypy
129+
.mypy_cache/
130+
.dmypy.json
131+
dmypy.json
132+
133+
# Pyre type checker
134+
.pyre/
135+
136+
# pytype static type analyzer
137+
.pytype/
138+
139+
# Cython debug symbols
140+
cython_debug/
141+
142+
# NodeJS
143+
144+
# Logs
145+
logs
146+
*.log
147+
npm-debug.log*
148+
yarn-debug.log*
149+
yarn-error.log*
150+
lerna-debug.log*
151+
152+
# Diagnostic reports (https://nodejs.org/api/report.html)
153+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
154+
155+
# Runtime data
156+
pids
157+
*.pid
158+
*.seed
159+
*.pid.lock
160+
161+
# Directory for instrumented libs generated by jscoverage/JSCover
162+
lib-cov
163+
164+
# Coverage directory used by tools like istanbul
165+
coverage
166+
*.lcov
167+
168+
# nyc test coverage
169+
.nyc_output
170+
171+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
172+
.grunt
173+
174+
# Bower dependency directory (https://bower.io/)
175+
bower_components
176+
177+
# node-waf configuration
178+
.lock-wscript
179+
180+
# Compiled binary addons (https://nodejs.org/api/addons.html)
181+
build/Release
182+
183+
# Dependency directories
184+
node_modules/
185+
jspm_packages/
186+
187+
# Snowpack dependency directory (https://snowpack.dev/)
188+
web_modules/
189+
190+
# TypeScript cache
191+
*.tsbuildinfo
192+
193+
# Optional npm cache directory
194+
.npm
195+
196+
# Optional eslint cache
197+
.eslintcache
198+
199+
# Microbundle cache
200+
.rpt2_cache/
201+
.rts2_cache_cjs/
202+
.rts2_cache_es/
203+
.rts2_cache_umd/
204+
205+
# Optional REPL history
206+
.node_repl_history
207+
208+
# Output of 'npm pack'
209+
*.tgz
210+
211+
# Yarn Integrity file
212+
.yarn-integrity
213+
214+
# dotenv environment variables file
215+
.env
216+
.env.test
217+
218+
# parcel-bundler cache (https://parceljs.org/)
219+
.cache
220+
.parcel-cache
221+
222+
# Next.js build output
223+
.next
224+
out
225+
226+
# Nuxt.js build / generate output
227+
.nuxt
228+
dist
229+
230+
# Gatsby files
231+
.cache/
232+
# Comment in the public line in if your project uses Gatsby and not Next.js
233+
# https://nextjs.org/blog/next-9-1#public-directory-support
234+
# public
235+
236+
# vuepress build output
237+
.vuepress/dist
238+
239+
# Serverless directories
240+
.serverless/
241+
242+
# FuseBox cache
243+
.fusebox/
244+
245+
# DynamoDB Local files
246+
.dynamodb/
247+
248+
# TernJS port file
249+
.tern-port
250+
251+
# Stores VSCode versions used for testing VSCode extensions
252+
.vscode-test
253+
254+
# yarn v2
255+
.yarn/cache
256+
.yarn/unplugged
257+
.yarn/build-state.yml
258+
.yarn/install-state.gz
259+
.pnp.*
260+
Binary file not shown.

0 commit comments

Comments
 (0)