fast


License

License

MIT
GroupId

GroupId

org.pure4s
ArtifactId

ArtifactId

uuid4s-fast_2.12
Last Version

Last Version

0.1.5
Release Date

Release Date

Type

Type

jar
Description

Description

fast
fast
Project URL

Project URL

https://github.com/pure4s/uuid4s
Project Organization

Project Organization

org.pure4s
Source Code Management

Source Code Management

https://github.com/pure4s/uuid4s

Download uuid4s-fast_2.12

How to add to project

<!-- https://jarcasting.com/artifacts/org.pure4s/uuid4s-fast_2.12/ -->
<dependency>
    <groupId>org.pure4s</groupId>
    <artifactId>uuid4s-fast_2.12</artifactId>
    <version>0.1.5</version>
</dependency>
// https://jarcasting.com/artifacts/org.pure4s/uuid4s-fast_2.12/
implementation 'org.pure4s:uuid4s-fast_2.12:0.1.5'
// https://jarcasting.com/artifacts/org.pure4s/uuid4s-fast_2.12/
implementation ("org.pure4s:uuid4s-fast_2.12:0.1.5")
'org.pure4s:uuid4s-fast_2.12:jar:0.1.5'
<dependency org="org.pure4s" name="uuid4s-fast_2.12" rev="0.1.5">
  <artifact name="uuid4s-fast_2.12" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.pure4s', module='uuid4s-fast_2.12', version='0.1.5')
)
libraryDependencies += "org.pure4s" % "uuid4s-fast_2.12" % "0.1.5"
[org.pure4s/uuid4s-fast_2.12 "0.1.5"]

Dependencies

compile (5)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.12.8
org.pure4s : uuid4s_2.12 jar 0.1.5
org.typelevel : cats-core_2.12 jar 1.5.0
org.typelevel : cats-effect_2.12 jar 1.1.0
com.eatthepath : fast-uuid jar 0.1

test (1)

Group / Artifact Type Version
org.scalatest : scalatest_2.12 jar 3.0.5

Project Modules

There are no modules declared in this project.

uuid4s

Build Status Maven Central codecov.io GitHub Issues GitHub PR License: MIT

uuid4s is yet another functional uuid for Scala. It tries to be typeful and purely functional. Java UUID’s aren’t safe and are not referentially transparent. The objetive of this library is provide a set of tools for interacting with FUUID’s.

Installation

Add the following to your build.sbt.

// For Scala 2.11, or 2.12
libraryDependencies += "org.pure4s" %% "uuid4s" % "0.1.5"

Rationale

  1. It's easy to use.
  2. It does not force a specific target context. You can run your computations in any type F[_] that has an instance of cats-effect's Sync[F].
  3. It has documentation.
  4. It's modular.

Modules

Module name Description Version
uuid4s The core functionality of uuid4s 0.1.5
uuid4s-fast Use fast uuid fast-uuid 0.1.5
uuid4s-circe Encode and decode HTTP entities with Circe 0.1.5

Usage

Example:

import java.util.UUID
import cats.effect.IO
import org.pure4s.uuid4s.FUUID

object Main extends App {

  // Parsing
  val uuid1: UUID = FUUID[IO].fromString("7cfb70a9-0764-4851-a28c-309393aea2eb").unsafeRunSync()
  // uuid1: java.util.UUID = 7cfb70a9-0764-4851-a28c-309393aea2eb

  // Generating
  val uuid2: UUID = FUUID[IO].random.unsafeRunSync()
  // uuid2: java.util.UUID = f94e2de4-1c08-4189-9664-105954589e52
}

Code of conduct

People are expected to follow the conduct-code when discussing the project on the available communication channels.

org.pure4s

pure4s

Purely Functional Libraries for Scala

Versions

Version
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1