{"id":13800051,"url":"https://github.com/GnaneshKunal/scala-native-starter","last_synced_at":"2025-05-13T08:32:39.195Z","repository":{"id":113661555,"uuid":"105521452","full_name":"GnaneshKunal/scala-native-starter","owner":"GnaneshKunal","description":"A starter for scala-native.","archived":true,"fork":false,"pushed_at":"2018-03-24T15:12:56.000Z","size":9,"stargazers_count":27,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-22T13:32:44.309Z","etag":null,"topics":["c","native","scala","scala-native"],"latest_commit_sha":null,"homepage":"http://www.scala-native.org/","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GnaneshKunal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-10-02T10:12:37.000Z","updated_at":"2024-01-16T10:31:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"9faf5590-d999-4694-98b1-dc7ba8b05553","html_url":"https://github.com/GnaneshKunal/scala-native-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GnaneshKunal%2Fscala-native-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GnaneshKunal%2Fscala-native-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GnaneshKunal%2Fscala-native-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GnaneshKunal%2Fscala-native-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GnaneshKunal","download_url":"https://codeload.github.com/GnaneshKunal/scala-native-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253903945,"owners_count":21981776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","native","scala","scala-native"],"created_at":"2024-08-04T00:01:08.743Z","updated_at":"2025-05-13T08:32:38.984Z","avatar_url":"https://github.com/GnaneshKunal.png","language":"Scala","funding_links":[],"categories":["Tutorials and Examples"],"sub_categories":[],"readme":"\n# Scala-Native Starter . [![Build Status](https://travis-ci.org/GnaneshKunal/scala-native-starter.svg?branch=master)](https://travis-ci.org/GnaneshKunal/scala-native-starter.svg?branch=master)\n## Background\n\n\n* [Dependencies](https://github.com/GnaneshKunal/scala-native-starter/blob/master/bin/travis_setup.sh#L29-L39)\n* [Additional Dependencies](https://github.com/crystal-lang/crystal/wiki/All-required-libraries)\n\n## Requirements\n\n* scala 2.11.x\n* sbt 0.13.16\n\n## Installation\n\n\nIn your app directory run `sbt` to install all the dependencies\n\n    sbt    \n\n## Usage\n\n### Link libraries\n\nAdd your compilation script in `makefile` file:\n\n    clang -m64 -c src/main/c/hello.c -o target/libhello.so\n\nAnd in your `scala` file\n\n```scala\n    import scalanative.native._\n    \n    @extern\n    @link(\"hello\")\n    object hello {\n      def greet(str: CString, n: CInt): CString = extern\n    }\n```\n\n### Compile\n```bash\n    sbt compile\n```\n\n### Compile, link and run\n```bash\n    sbt run\n```\n\n## Run\nAfter compiling, you can find the executable file in target/{SCALA_VERSION}/EXE\n```bash\n    target/scala-2.11/scala-native-starter-out\n```\n\n## License\n\nThe MIT License (MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGnaneshKunal%2Fscala-native-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGnaneshKunal%2Fscala-native-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGnaneshKunal%2Fscala-native-starter/lists"}