{"id":18847786,"url":"https://github.com/interkosmos/fortran-zstd","last_synced_at":"2026-01-27T14:02:41.403Z","repository":{"id":231185740,"uuid":"781170297","full_name":"interkosmos/fortran-zstd","owner":"interkosmos","description":"Fortran 2018 interface bindings to Zstandard (zstd)","archived":false,"fork":false,"pushed_at":"2026-01-16T20:50:46.000Z","size":34,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-17T09:23:32.419Z","etag":null,"topics":["archiving","compression","fortran","fortran-2018","fortran-package-manager","zstandard","zstd"],"latest_commit_sha":null,"homepage":"","language":"Fortran","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/interkosmos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-04-02T21:52:53.000Z","updated_at":"2026-01-16T20:51:30.000Z","dependencies_parsed_at":"2025-05-23T00:31:33.407Z","dependency_job_id":"c334cdee-d772-4862-b1ea-161a69d26f3d","html_url":"https://github.com/interkosmos/fortran-zstd","commit_stats":null,"previous_names":["interkosmos/fortran-zstd"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/interkosmos/fortran-zstd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interkosmos%2Ffortran-zstd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interkosmos%2Ffortran-zstd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interkosmos%2Ffortran-zstd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interkosmos%2Ffortran-zstd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/interkosmos","download_url":"https://codeload.github.com/interkosmos/fortran-zstd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interkosmos%2Ffortran-zstd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28814300,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["archiving","compression","fortran","fortran-2018","fortran-package-manager","zstandard","zstd"],"created_at":"2024-11-08T03:09:40.507Z","updated_at":"2026-01-27T14:02:41.397Z","avatar_url":"https://github.com/interkosmos.png","language":"Fortran","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fortran-zstd\n\nA collection of Fortran 2018 interface bindings to selected\n[Zstandard](http://www.zstd.net/) functions (zstd ≥ 1.5.5). In comparison to the\noriginal C API, the Fortran interfaces, types, and arguments have been converted\nto snake case. See [COVERAGE](COVERAGE.md) for an overview of bound procedures.\n\n## Build Instructions\n\nThe zstd library has to be installed with development headers. On FreeBSD, run:\n\n```\n# pkg install archivers/zstd\n```\n\nOn Linux, instead:\n\n```\n# apt-get install libzstd1 libzstd-dev\n```\n\nOr, to build the zstd library from source, and to install to `/usr/local`, run:\n\n```\n$ cd /tmp/\n$ git clone --depth 1 https://github.com/facebook/zstd\n$ cd zstd/build/cmake/\n$ mkdir build \u0026\u0026 cd build/\n$ cmake ..\n$ cmake --build . --config Release\n$ sudo cmake --install . --prefix /usr/local\n```\n\nBuild and install the Fortran library using the provided Makefile:\n\n```\n$ make\n$ make install PREFIX=/opt\n```\n\nLink your programs against `/opt/lib/libfortran-zstd.a -lzstd`. Optionally,\noverwrite the default compiler and the compiler flags:\n\n```\n$ make FC=ifx FFLAGS=\"-O3\"\n```\n\nOr, use the [Fortran Package Manager](https://github.com/fortran-lang/fpm):\n\n```\n$ fpm build --profile release\n```\n\nBuild and run the test program:\n\n```\n$ make test\n$ ./test_zstd\n```\n\n## Example\n\nThe following basic example compresses and uncompresses an input string.\n\n```fortran\n! example.f90\nprogram main\n    use :: zstd\n    implicit none (type, external)\n\n    character(len=:), allocatable :: dst1, dst2, src\n    integer(kind=c_size_t)        :: dst_len, src_len, stat\n\n    src = repeat('Hello, there! ', 32)\n\n    src_len = len(src, kind=c_size_t)\n    dst_len = zstd_compress_bound(src_len)\n\n    allocate (character(len=dst_len) :: dst1)\n    allocate (character(len=src_len) :: dst2)\n\n    stat = zstd_compress(dst1, dst_len, src, src_len, zstd_default_c_level())\n    dst_len = stat\n\n    if (zstd_is_error(stat)) then\n        print '(\"zstd_compress: \", a)', zstd_get_error_name(stat)\n        error stop\n    end if\n\n    stat = zstd_decompress(dst2, src_len, dst1, dst_len)\n\n    if (zstd_is_error(stat)) then\n        print '(\"zstd_decompress: \", a)', zstd_get_error_name(stat)\n        error stop\n    end if\nend program main\n```\n\nIf the library has been installed to `/opt`, then compile, link, and run the\nexample program with:\n\n```\n$ gfortran -I/opt/include/libfortran-zstd -o example example.f90 \\\n  /opt/lib/libfortran-zstd.a -lzstd\n$ ./example\n```\n\n## Fortran Package Manager\n\nYou can add *fortran-zstd* as an FPM dependency:\n\n```toml\n[dependencies]\nfortran-zstd = { git = \"https://github.com/interkosmos/fortran-zstd.git\" }\n```\n\n## References\n\n* [Zstandard manual](http://facebook.github.io/zstd/zstd_manual.html)\n* [Zstandard repository](https://github.com/facebook/zstd)\n* [Zstandard website](http://www.zstd.net/)\n\n## Licence\n\nISC\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterkosmos%2Ffortran-zstd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finterkosmos%2Ffortran-zstd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterkosmos%2Ffortran-zstd/lists"}